Trim lines received from pdftotext
This commit is contained in:
parent
698254adb7
commit
7bcc25e986
|
@ -301,7 +301,7 @@ Zotero_RecognizePDF.Recognizer.prototype.recognize = function(file, libraryID, c
|
|||
var lineLengths = [];
|
||||
var str = {};
|
||||
while(intlStream.readLine(str)) {
|
||||
var line = lineRe.exec(str.value);
|
||||
var line = lineRe.exec(str.value.trim());
|
||||
if(line) {
|
||||
lines.push(line[1]);
|
||||
lineLengths.push(line[1].length);
|
||||
|
|
Loading…
Reference in New Issue
Block a user