From 45b3cd8a530d60c860b639a5fea849abaa897879 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 7 May 2015 13:41:13 -0400 Subject: [PATCH] Replace non-breaking spaces in tested lines in recognizePDF Fixes "PDF does not contain OCRed text" message for http://pdfserver.amlaw.com/nlj/NSA_ca2_20150507.pdf --- chrome/content/zotero/recognizePDF.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js index 819761caa5..91941fb5fe 100644 --- a/chrome/content/zotero/recognizePDF.js +++ b/chrome/content/zotero/recognizePDF.js @@ -593,7 +593,11 @@ var Zotero_RecognizePDF = new function() { const lineRe = /^[\s_]*([^\s]+(?: [^\s_]+)+)/; var cleanedLines = [], cleanedLineLengths = []; for(var i=0; i 3) { cleanedLines.push(m[1]); cleanedLineLengths.push(m[1].length);