Commit 64408576 authored by myhloli's avatar myhloli
Browse files

fix(ocr_mkcontent): expand para_to_standard_format_v2 to handle list and index blocks

- Modified the condition to include List and Index block types- This change enhances the function's capability to process different paragraph types
parent e4904cd6
......@@ -162,7 +162,7 @@ def merge_para_with_text(para_block):
def para_to_standard_format_v2(para_block, img_buket_path, page_idx, drop_reason=None):
para_type = para_block['type']
para_content = {}
if para_type == BlockType.Text:
if para_type in [BlockType.Text, BlockType.List, BlockType.Index]:
para_content = {
'type': 'text',
'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