From 119068dad278743ad2aedb15184947628a30d558 Mon Sep 17 00:00:00 2001 From: Han The Thanh Date: Wed, 21 Apr 2010 07:00:17 +0000 Subject: add some newlines to pdf output (cosmetic change) git-svn-id: svn://tug.org/texlive/trunk@17952 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/pdftexdir/utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Build/source/texk/web2c/pdftexdir/utils.c') 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))) -- cgit v1.2.3