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/pdftoepdf.cc | |
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/pdftoepdf.cc')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/pdftoepdf.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc index b687da19fc5..7d2faa5d69e 100644 --- a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc +++ b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc @@ -589,8 +589,7 @@ static void copyObject(Object * obj) pdf_puts(">>\n"); pdf_puts("stream\n"); copyStream(obj->getStream()->getUndecodedStream()); - if (pdflastbyte != '\n') - pdf_puts("\n"); + pdf_newline(); pdf_puts("endstream"); // can't simply write pdfendstream() } else if (obj->isRef()) { ref = obj->getRef(); @@ -902,6 +901,7 @@ void write_epdf(void) for (i = 0; pageDictKeys[i] != NULL; i++) { pageDict->lookupNF(pageDictKeys[i], &dictObj); if (!dictObj->isNull()) { + pdf_newline(); pdf_printf("/%s ", pageDictKeys[i]); copyObject(&dictObj); // preserves indirection } @@ -919,6 +919,7 @@ void write_epdf(void) if (!obj1->isDict()) pdftex_fail("PDF inclusion: invalid resources dict type <%s>", obj1->getTypeName()); + pdf_newline(); pdf_puts("/Resources <<\n"); for (i = 0, l = obj1->dictGetLength(); i < l; ++i) { obj1->dictGetVal(i, &obj2); @@ -977,7 +978,7 @@ void write_epdf(void) copyStream((contents->arrayGet(i, &contentsobj))->getStream()); contentsobj.free(); if (i < l - 1) - pdf_puts("\n"); // add a newline after each stream except the last + pdf_newline(); // add a newline after each stream except the last } pdfendstream(); } else { // the contents are optional, but we need to include an empty stream |