Skip to content

Commit 816ea79

Browse files
authored
Merge pull request #226 from OlgaDumina/main
Fixed a bug with incorrect block sequence in columns
2 parents 6e4dc9e + 006c611 commit 816ea79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymupdf4llm/pymupdf4llm/helpers/multi_column.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def join_rects_phase3(bboxes, path_rects):
248248
)
249249
if test == set((tuple(prect0), tuple(prect1))):
250250
prect0 |= prect1
251+
prects[0] = prect0
251252
del prects[i]
252253
repeat = True
253254
new_rects.append(prect0)

0 commit comments

Comments
 (0)