diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-01-31 17:59:02 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-02-19 03:05:46 +0100 |
commit | 25988e8d108ac036329c2a5e8b628d9ac4920d0a (patch) | |
tree | 2a06eb5415e9ccd4c47c93344d666923b8372f73 /libqpdf | |
parent | cc108a7f1b82e4324b419f5be777063dadba0337 (diff) | |
download | qpdf-25988e8d108ac036329c2a5e8b628d9ac4920d0a.tar.zst |
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.
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/Pl_QPDFTokenizer.cc | 4 |
1 files changed, 0 insertions, 4 deletions
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(); } |