diff options
author | Han The Thanh <hanthethanh@gmail.com> | 2010-04-21 07:00:17 +0000 |
---|---|---|
committer | Han The Thanh <hanthethanh@gmail.com> | 2010-04-21 07:00:17 +0000 |
commit | 119068dad278743ad2aedb15184947628a30d558 (patch) | |
tree | 842921a260334f8c998b0a0323985d8638726b9a /Build/source/texk/web2c/pdftexdir/utils.c | |
parent | ea3baf8db44f6caeb4208f29668be8ced7cac07b (diff) |
add some newlines to pdf output (cosmetic change)
git-svn-id: svn://tug.org/texlive/trunk@17952 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/utils.c')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/utils.c | 7 |
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))) |