From: notmasteryet Date: Wed, 21 Sep 2011 00:04:12 +0000 (-0500) Subject: Add LF to isSpace; pass ImageLoader when a pattern is processed X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dcd4f2ea61c80d89fba318c588f18cfb22311f9f;p=pdf.js.git Add LF to isSpace; pass ImageLoader when a pattern is processed --- diff --git a/pdf.js b/pdf.js index 0b810a3..79b5904 100644 --- a/pdf.js +++ b/pdf.js @@ -2415,7 +2415,7 @@ var Lexer = (function() { } constructor.isSpace = function(ch) { - return ch == ' ' || ch == '\t' || ch == '\x0d'; + return ch == ' ' || ch == '\t' || ch == '\x0d' || ch == '\x0a'; }; // A '1' in this array means the character is white space. A '1' or @@ -4184,7 +4184,7 @@ var PartialEvaluator = (function() { if (typeNum == 1) { patternName.code = this.evaluate(pattern, xref, dict.get('Resources'), - fonts); + fonts, images); } } }