Skip to content

Commit

Permalink
fix line merging area threshold [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Nov 27, 2024
1 parent d4d8b0d commit 9626ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marker/processors/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __call__(self, document: Document):
min_x = math.ceil(min([l.polygon.x_start for l in new_block_lines]))
next_block_starts_indented = new_block_lines[0].polygon.x_start > min_x

lines: List[Line] = [l for l in block.structure_blocks(document) if l.polygon.width > 0]
lines: List[Line] = [l for l in block.structure_blocks(document) if l.polygon.width > 1]
if len(lines):
max_x = math.floor(max([l.polygon.x_end for l in lines]))
last_line_is_full_width = lines[-1].polygon.x_end >= max_x
Expand Down

0 comments on commit 9626ffd

Please sign in to comment.