aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_QPDFTokenizer.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-01-31 17:59:02 +0100
committerJay Berkenbilt <ejb@ql.org>2018-02-19 03:05:46 +0100
commit25988e8d108ac036329c2a5e8b628d9ac4920d0a (patch)
tree2a06eb5415e9ccd4c47c93344d666923b8372f73 /libqpdf/Pl_QPDFTokenizer.cc
parentcc108a7f1b82e4324b419f5be777063dadba0337 (diff)
downloadqpdf-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/Pl_QPDFTokenizer.cc')
-rw-r--r--libqpdf/Pl_QPDFTokenizer.cc4
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();
}