A fast, helpful, and open-source document parser
lint
Logan Markewich2dfabdead80b
diff --git a/src/processing/gridProjection.ts b/src/processing/gridProjection.tsindex de91806..78edbef 100644--- a/src/processing/gridProjection.ts+++ b/src/processing/gridProjection.ts@@ -909,8 +909,7 @@ export function bboxToLine(i--;} else if (!bothAreNumbers &&- currentLine.x - previousLine.x - previousLine.w <- previousLine.w / previousLine.strLength+ currentLine.x - previousLine.x - previousLine.w < previousLine.w / previousLine.strLength) {// merge if space between this word and previous is less than average// character width (using previous word font size)diff --git a/src/processing/textUtils.ts b/src/processing/textUtils.tsindex fa14adb..5465342 100644--- a/src/processing/textUtils.ts+++ b/src/processing/textUtils.ts@@ -13,7 +13,7 @@ export function cleanOcrTableArtifacts(text: string): string {// These typically appear at the start or end of cell contentconst borderArtifacts = /^[|[\](){}]+|[|[\](){}]+$/g;- let cleaned = text.trim();+ const cleaned = text.trim();// Only clean if the core content looks like a number or short text// This avoids incorrectly stripping brackets from actual content like "(note)"