We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0ac6e7 + 6ef0364 commit c1ea5e1Copy full SHA for c1ea5e1
1 file changed
src/simplify_docx/elements/table.py
@@ -70,7 +70,9 @@ def to_json(
70
71
_desc = self.fragment.tblPr.find(qn("w:tblDescription"))
72
if _desc is not None:
73
- if (not _desc.val) and options.get("ignore-empty-table-description", True):
+ if (not getattr(_desc, "val", None)) and options.get(
74
+ "ignore-empty-table-description", True
75
+ ):
76
pass
77
else:
78
out["tblDescription"] = _desc.val
0 commit comments