mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Address review comments.
This commit is contained in:
parent
c55dade357
commit
92e355dc35
1 changed files with 5 additions and 5 deletions
|
@ -504,7 +504,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||||
var args = [], obj;
|
var args = [], obj;
|
||||||
|
|
||||||
var text = '';
|
var text = '';
|
||||||
var chunk = null;
|
var chunk = '';
|
||||||
var font = null;
|
var font = null;
|
||||||
while (!isEOF(obj = parser.getObj())) {
|
while (!isEOF(obj = parser.getObj())) {
|
||||||
if (isCmd(obj)) {
|
if (isCmd(obj)) {
|
||||||
|
@ -529,15 +529,15 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||||
chunk += args[0];
|
chunk += args[0];
|
||||||
break;
|
break;
|
||||||
case "'":
|
case "'":
|
||||||
text += args[0] + ' ';
|
chunk += args[0] + ' ';
|
||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
text += args[2] + ' ';
|
chunk += args[2] + ' ';
|
||||||
break;
|
break;
|
||||||
} // switch
|
} // switch
|
||||||
if (chunk !== null) {
|
if (chunk !== '') {
|
||||||
text += fontCharsToUnicode(chunk, font.translated.properties);
|
text += fontCharsToUnicode(chunk, font.translated.properties);
|
||||||
chunk = null;
|
chunk = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
args = [];
|
args = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue