Skip to content

Commit

Permalink
fix: add table data check to Markdown export (#155)
Browse files Browse the repository at this point in the history
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
  • Loading branch information
ceberam committed Jan 10, 2024
1 parent 6c255f3 commit 6f30987
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deepsearch/documents/core/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def export_to_markdown(document: Dict[str, Any]) -> str:
else:
markdown_text += f"{text}\n\n"

elif item_type in ("table"):

elif item_type in ("table") and item.get("data", []):
table = []
for row in item["data"]:

Expand Down

0 comments on commit 6f30987

Please sign in to comment.