Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v2_fixes' into v2_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VikParuchuri committed Nov 27, 2024
2 parents bbe9624 + 70da706 commit f7955a8
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 f7955a8

Please sign in to comment.