From aa583d3eda56cb157b2eaff7d607d3d41b24c3f5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 9 Sep 2025 09:43:54 +0100 Subject: Test reading of table cells when non-cells are present --- mammoth/docx/body_xml.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mammoth/docx') 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" )]) -- cgit v1.2.3