Skip to content

Commit

Permalink
Fixed lists inside tables when include_tables=True
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhainin committed Apr 5, 2024
1 parent 8125043 commit daa8773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trafilatura/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def handle_table(table_elem, potential_tags, options):
# add child element to processed_element
if processed_subchild is not None:
subchildelem = SubElement(newchildelem, processed_subchild.tag)
subchildelem.text, subchildelem.tail = processed_subchild.text, processed_subchild.tail
subchildelem.text, subchildelem.tail = ''.join(processed_subchild.itertext()), processed_subchild.tail
child.tag = 'done'
# add to tree
if newchildelem.text or len(newchildelem) > 0:
Expand Down

0 comments on commit daa8773

Please sign in to comment.