From aa2253a10d92a07af74e96a04568734dc4c197f1 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 26 Sep 2026 22:03:51 +0100 Subject: Handle paragraphs and runs that have been moved and tracked as a revision --- mammoth/docx/body_xml.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mammoth') 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, -- cgit v1.2.3