Skip to content

Commit

Permalink
fix ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Nov 20, 2024
1 parent e0c6ff3 commit c27664a
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 @@ -49,7 +49,7 @@ def __call__(self, document: Document):

# we check for next_block indentation
new_block_lines = [page.get_block(block_id) for block_id in next_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
else: # page break
next_page = document.get_next_page(page)
Expand Down

0 comments on commit c27664a

Please sign in to comment.