Skip to content

Commit

Permalink
Merge pull request #117 from papayalove/master
Browse files Browse the repository at this point in the history
修复分段边界问题
  • Loading branch information
myhloli authored Jun 11, 2024
2 parents bf18172 + 9c6cb7b commit 0678a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magic_pdf/para/para_split_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def __split_para_in_layoutbox(blocks_group, new_layout_bbox, lang="en"):
block["type"] == BlockType.Text for line in
block['lines']]
total_lines = len(lines)
if total_lines == 1:
if total_lines == 1 or total_lines == 0:
list_info.append([False, False])
continue
"""在进入到真正的分段之前,要对文字块从统计维度进行对齐方式的探测,
Expand Down

0 comments on commit 0678a86

Please sign in to comment.