Unverified Commit ed40e1d5 authored by myhloli's avatar myhloli Committed by GitHub

Merge pull request #51 from papayalove/master

更新了para_split
parents d95f5452 bb2bf065
...@@ -517,6 +517,8 @@ def __connect_para_inter_page(pre_page_paras, next_page_paras, pre_page_layout_b ...@@ -517,6 +517,8 @@ def __connect_para_inter_page(pre_page_paras, next_page_paras, pre_page_layout_b
next_first_block = next_page_paras[0][0] next_first_block = next_page_paras[0][0]
if pre_last_block["type"] != BlockType.Text or next_first_block["type"] != BlockType.Text: if pre_last_block["type"] != BlockType.Text or next_first_block["type"] != BlockType.Text:
return False return False
if len(pre_last_block["lines"]) == 0 or len(next_first_block["lines"]) == 0:
return False
pre_last_para = pre_last_block["lines"] pre_last_para = pre_last_block["lines"]
next_first_para = next_first_block["lines"] next_first_para = next_first_block["lines"]
pre_last_line = pre_last_para[-1] pre_last_line = pre_last_para[-1]
......
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