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

Merge pull request #4493 from yurydelendik/issue4491

Fixes ignoring of the escaped CR LF
This commit is contained in:
Brendan Dahl 2014-03-20 14:57:24 -07:00
commit 1416eca164
2 changed files with 17 additions and 1 deletions

View file

@ -595,7 +595,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));