Skip to content

Commit

Permalink
fix thinko
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Nov 20, 2024
1 parent 42dac94 commit e0c6ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marker/v2/processors/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __call__(self, document: Document):

# check if the new block is indented
new_block_lines = [next_page.get_block(block_id) for block_id in next_page_block.structure]
min_x = math.floor(min([l.polygon.x_start for l in new_block_lines]))
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

next_block_in_first_quadrant = (next_page_block.polygon.x_start < next_page.polygon.width // 2) and \
Expand Down

0 comments on commit e0c6ff3

Please sign in to comment.