Trim lines received from pdftotext

This commit is contained in:
Simon Kornblith 2012-06-18 16:50:33 -04:00
parent 698254adb7
commit 7bcc25e986

View File

@ -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);