|
|
@@ -254,9 +254,8 @@ def union_make(pdf_info_dict: list,
|
|
|
page_markdown = mk_blocks_to_markdown(paras_of_layout, make_mode, formula_enable, table_enable, img_buket_path)
|
|
|
output_content.extend(page_markdown)
|
|
|
elif make_mode == MakeMode.CONTENT_LIST:
|
|
|
- if not paras_of_layout + paras_of_discarded:
|
|
|
- continue
|
|
|
- for para_block in paras_of_layout + paras_of_discarded:
|
|
|
+ para_blocks = (paras_of_layout or []) + (paras_of_discarded or [])
|
|
|
+ for para_block in para_blocks:
|
|
|
para_content = make_blocks_to_content_list(para_block, img_buket_path, page_idx, page_size)
|
|
|
output_content.append(para_content)
|
|
|
|