aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-09-09 09:19:21 +0100
committerMichael Williamson <mike@zwobble.org>2025-09-09 09:19:21 +0100
commit8ca702caace290b532b8e83b44900ff24aca17ff (patch)
treee183552e1d3eddfa64a7cc757f0fc9b74e3c49b3 /lib
parent5ec3c49c22c3448cd0583be74512129c221cd030 (diff)
Test reading of table cells when non-cells are present
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/body-reader.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index e6a70e2..b3aea00 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -532,6 +532,7 @@ function BodyReader(options) {
});
});
if (unexpectedNonCells) {
+ removeVMergeProperties(rows);
return elementResultWithMessages(rows, [warning(
"unexpected non-cell element in table row, cell merging may be incorrect"
)]);