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. --- libqpdf/Pl_QPDFTokenizer.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libqpdf/Pl_QPDFTokenizer.cc') diff --git a/libqpdf/Pl_QPDFTokenizer.cc b/libqpdf/Pl_QPDFTokenizer.cc index 690d7bc9..9595cd75 100644 --- a/libqpdf/Pl_QPDFTokenizer.cc +++ b/libqpdf/Pl_QPDFTokenizer.cc @@ -149,10 +149,6 @@ Pl_QPDFTokenizer::finish() writeNext(&this->char_to_unread, 1); } } - if (! this->just_wrote_nl) - { - writeNext("\n", 1); - } getNext()->finish(); } -- cgit v1.2.3-54-g00ecf