Skip to content

Commit

Permalink
Fix TypeError in extract_table.py. Resolves #76 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaryn authored Oct 3, 2023
1 parent 50925df commit 51e2f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sycamore/transforms/extract_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def bbox_to_coord(bbox):
if table.title:
element.text_representation = table.title.text + "\n"
element.properties["boxes"].append(bbox_to_coord(table.title.bbox))
else:
element.text_representation = ""

element.text_representation = element.text_representation + table.to_csv() + "\n"
element.properties["boxes"].append(bbox_to_coord(table.bbox))
Expand Down

0 comments on commit 51e2f67

Please sign in to comment.