mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-03-27 11:08:32 +07:00
拼接markdown时,如果para_text为空则跳过拼接
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user