aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/body_xml.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-09-09 09:43:54 +0100
committerMichael Williamson <mike@zwobble.org>2025-09-09 09:43:54 +0100
commitaa583d3eda56cb157b2eaff7d607d3d41b24c3f5 (patch)
tree099c287cce1232188f9e7dc09be0061249f5f220 /mammoth/docx/body_xml.py
parentb3ce26c39f64e580e1e42c28e829421084455043 (diff)
Test reading of table cells when non-cells are present
Diffstat (limited to 'mammoth/docx/body_xml.py')
-rw-r--r--mammoth/docx/body_xml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py
index 091caef..e499cce 100644
--- a/mammoth/docx/body_xml.py
+++ b/mammoth/docx/body_xml.py
@@ -410,6 +410,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
for cell in row.children
)
if unexpected_non_cells:
+ remove_unmerged_table_cells(rows)
return _elements_result_with_messages(rows, [results.warning(
"unexpected non-cell element in table row, cell merging may be incorrect"
)])