Trim lines received from pdftotext
This commit is contained in:
parent
698254adb7
commit
7bcc25e986
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ Zotero_RecognizePDF.Recognizer.prototype.recognize = function(file, libraryID, c
|
||||||
var lineLengths = [];
|
var lineLengths = [];
|
||||||
var str = {};
|
var str = {};
|
||||||
while(intlStream.readLine(str)) {
|
while(intlStream.readLine(str)) {
|
||||||
var line = lineRe.exec(str.value);
|
var line = lineRe.exec(str.value.trim());
|
||||||
if(line) {
|
if(line) {
|
||||||
lines.push(line[1]);
|
lines.push(line[1]);
|
||||||
lineLengths.push(line[1].length);
|
lineLengths.push(line[1].length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue