Commit 473a0a7d authored by 赵小蒙's avatar 赵小蒙
Browse files

拼接markdown时,如果para_text为空则跳过拼接

parent 61c970f7
......@@ -122,7 +122,10 @@ def ocr_mk_mm_markdown_with_para_core(paras_of_layout, mode):
pass
if content != '':
para_text += content + ' '
page_markdown.append(para_text.strip() + ' ')
if para_text.strip() == '':
continue
else:
page_markdown.append(para_text.strip() + ' ')
return page_markdown
......
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