Skip to content

Commit 006c611

Browse files
authored
Update multi_column.py
It solves an issue with wrong column extraction, while the lines in the column weren't joined properly. The test set in line 246 was created from the old value of prects[0], but compared with new prect0.
1 parent 6e4dc9e commit 006c611

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)