From 25988e8d108ac036329c2a5e8b628d9ac4920d0a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 31 Jan 2018 11:59:02 -0500 Subject: Bug fix: content normalizer should not add trailing newline Adding a trailing newline in content normalization damages files whose contents are split across streams in the middle of tokens. Let QPDFWriter add the newline with the indicator to ignore the newline, which it already does. This changes the way some qdf files look. --- examples/qtest/mod-info/files/2.qdf | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'examples/qtest') diff --git a/examples/qtest/mod-info/files/2.qdf b/examples/qtest/mod-info/files/2.qdf index 63be2439..2d26c161 100644 --- a/examples/qtest/mod-info/files/2.qdf +++ b/examples/qtest/mod-info/files/2.qdf @@ -138,8 +138,9 @@ Q endstream endobj +%QDF: ignore_newline 9 0 obj -404 +403 endobj 10 0 obj @@ -1313,20 +1314,20 @@ xref 0000003589 00000 n 0000003741 00000 n 0000003793 00000 n -0000004252 00000 n -0000004272 00000 n -0000004336 00000 n -0000004534 00000 n -0000004570 00000 n -0000004884 00000 n -0000004904 00000 n -0000006922 00000 n -0000006965 00000 n -0000007208 00000 n -0000009576 00000 n -0000009598 00000 n -0000009682 00000 n -0000156384 00000 n +0000004273 00000 n +0000004293 00000 n +0000004357 00000 n +0000004555 00000 n +0000004591 00000 n +0000004905 00000 n +0000004925 00000 n +0000006943 00000 n +0000006986 00000 n +0000007229 00000 n +0000009597 00000 n +0000009619 00000 n +0000009703 00000 n +0000156405 00000 n trailer << /Info 2 0 R /Root 1 0 R @@ -1334,5 +1335,5 @@ trailer << /ID [<31415926535897932384626433832795>] >> startxref -156408 +156429 %%EOF -- cgit v1.2.3-54-g00ecf