1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Fixes ignoring of the escaped CR LF

This commit is contained in:
Yury Delendik 2014-03-20 11:50:12 -05:00
parent 878a123e47
commit 20a91bcdbf
2 changed files with 17 additions and 1 deletions

View file

@ -61,6 +61,17 @@ describe('parser', function() {
expect(result).toEqual('p!U"$2');
});
it('should ignore escaped CR and LF', function() {
// '(\101\<CR><LF>\102)'
// should be parsed as
// "AB"
var input = new StringStream('(\\101\\\r\n\\102\\\r\\103\\\n\\104)');
var lexer = new Lexer(input);
var result = lexer.getString();
expect(result).toEqual('ABCD');
});
});
});