If we didn't find the xref command at the offset specified, then replace Windows \r\n line endings with Unix style \n and try again. If it succeeds, then edit the line-endings and proceed as normal. Otherwise continue on to the decodeXrefStream() method.
Fixes parsing of existing test suite file /samples/bugs/Issue95_ANSI.pdf the unit test for which would normally be passed over because of the @group linux-only flag. Remove this flag, as all assertions in the testDecodeText() function now resolve as true in any environment.
I would like to use Issue95_ANSI.pdf to create a few new assertions in testDecodeText() for my other PR #634. So if we can get this one merged first, that would be much appreciated! :)
If we didn't find the
xref
command at the offset specified, then replace Windows\r\n
line endings with Unix style\n
and try again. If it succeeds, then edit the line-endings and proceed as normal. Otherwise continue on to thedecodeXrefStream()
method.Fixes parsing of existing test suite file /samples/bugs/Issue95_ANSI.pdf the unit test for which would normally be passed over because of the
@group linux-only
flag. Remove this flag, as all assertions in thetestDecodeText()
function now resolve as true in any environment.