2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-04 03:10:52 +00:00
qpdf/qpdf/qtest/qpdf/good14.out
Jay Berkenbilt 25988e8d10 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.
2018-02-18 21:05:46 -05:00

48 lines
839 B
Plaintext

-- stream 0 --
A %here is a comment
B % here is another with CR
A B
one
two
three lines
(string with \r\nCRNL)
and another
indentation
(\001B%DEF)<01>
<8a8b>
(ab)
<8c><dd> ) >
<610062> (MOO)-- stream 1 --
This stream does end with a newline.
// tests:
// bad tokens preserved
// comments
// indentation
// CR/NL inside string literal -- changed to \r or \n, newline follows
// whitespace in hexstring (removed)
// strings normalized
// newlines normalized
// names normalized
// trailing space (preserved)
// final newline added
/bad#name
/good name
/bad#00name
-- stream 2 --
(This stream ends with a \001 bad token
-- stream 3 --
<AB X-- stream 4 --
(ends with a name)
/ThisMustBeLast-- stream 5 --
% This stream has an inline image marker that is not terminated
(Potato)
BI
ID
<506f7
461746f>
test 3 done