aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-09-26 22:03:51 +0100
committerMichael Williamson <mike@zwobble.org>2026-09-26 22:03:51 +0100
commitaa2253a10d92a07af74e96a04568734dc4c197f1 (patch)
treea2108ca32327e29e9d1d4259f319e3d1b68b56fc /mammoth/docx
parentb582d776915c380dc7518d2586edb6cb9a7423cf (diff)
Handle paragraphs and runs that have been moved and tracked as a revision
Diffstat (limited to 'mammoth/docx')
-rw-r--r--mammoth/docx/body_xml.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py
index bf3e3ca..1a9b49e 100644
--- a/mammoth/docx/body_xml.py
+++ b/mammoth/docx/body_xml.py
@@ -72,6 +72,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
"w:del",
"w:footnoteRef",
"w:endnoteRef",
+ "w:moveFrom",
"w:pPr",
"w:rPr",
"w:tblPr",
@@ -698,6 +699,11 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
"w:tc": table_cell,
"w:customXml": read_child_elements,
"w:ins": read_child_elements,
+ "w:moveFromRangeEnd": read_child_elements,
+ "w:moveFromRangeStart": read_child_elements,
+ "w:moveTo": read_child_elements,
+ "w:moveToRangeEnd": read_child_elements,
+ "w:moveToRangeStart": read_child_elements,
"w:object": read_child_elements,
"w:smartTag": read_child_elements,
"w:drawing": read_child_elements,