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:
parent
878a123e47
commit
20a91bcdbf
2 changed files with 17 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue