Unverified Commit 7f27dd12 authored by myhloli's avatar myhloli Committed by GitHub

Merge pull request #52 from myhloli/master

避免空para导致的error
parents ef0129ad 81f73a3d
......@@ -94,6 +94,7 @@ def ocr_mk_markdown_with_para_core(paras_of_layout, mode, img_buket_path=""):
def ocr_mk_markdown_with_para_core_v2(paras_of_layout, mode, img_buket_path=""):
page_markdown = []
for para_block in paras_of_layout:
para_text = ''
para_type = para_block.get('type')
if para_type == BlockType.Text:
para_text = merge_para_with_text(para_block)
......
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