Commit 4ff09a2f authored by liukaiwen's avatar liukaiwen

修复边界问题(修复list拼接和reference分行问题)

parent f8548a8e
......@@ -106,7 +106,8 @@ def __detect_list_lines(lines, new_layout_bboxes, lang):
3. 如果非顶格,首字符大写,编码为2
4. 如果非顶格,首字符非大写编码为3
"""
x_map_tag_dict, min_x_tag = cluster_line_x(lines)
if len(lines) > 0:
x_map_tag_dict, min_x_tag = cluster_line_x(lines)
for l in lines:
span_text = __get_span_text(l['spans'][0])
first_char = span_text[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment