1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +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

@ -587,7 +587,12 @@ var Lexer = (function LexerClosure() {
strBuf.push(String.fromCharCode(x));
break;
case 0x0A: case 0x0D: // LF, CR
case 0x0D: // CR
if (this.peekChar() === 0x0A) { // LF
this.nextChar();
}
break;
case 0x0A: // LF
break;
default:
strBuf.push(String.fromCharCode(ch));