summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/utils.c')
-rw-r--r--Build/source/texk/web2c/pdftexdir/utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/utils.c b/Build/source/texk/web2c/pdftexdir/utils.c
index ebf68346613..d7ccc213efd 100644
--- a/Build/source/texk/web2c/pdftexdir/utils.c
+++ b/Build/source/texk/web2c/pdftexdir/utils.c
@@ -166,6 +166,13 @@ void pdf_puts(const char *s)
pdfroom(strlen(s) + 1);
while (*s)
pdfbuf[pdfptr++] = *s++;
+ pdflastbyte = s[-1];
+}
+
+void pdf_newline(void)
+{
+ if (pdflastbyte != '\n')
+ pdf_puts("\n");
}
__attribute__ ((format(printf, 1, 2)))