From d9eb4dd74d6e3dd78960ecf7710eb621171682af Mon Sep 17 00:00:00 2001 From: Moses Paul R Date: Sat, 30 Nov 2024 18:08:26 +0000 Subject: [PATCH] make column break threshold more generous --- marker/processors/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marker/processors/list.py b/marker/processors/list.py index ae94c72b..32565e49 100644 --- a/marker/processors/list.py +++ b/marker/processors/list.py @@ -36,7 +36,7 @@ def __call__(self, document: Document): if next_block.page_id == block.page_id: # block on the same page # we check for a column break column_break = ( - math.floor(next_block.polygon.y_start) <= math.ceil(block.polygon.y_start) and + next_block.polygon.y_start <= block.polygon.y_end and next_block.polygon.x_start > (block.polygon.x_end + column_gap) ) else: