aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--mammoth/docx/__init__.py1
-rw-r--r--mammoth/docx/body_xml.py1
3 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e1e78ae..6ed8c65 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,7 @@
* Read children of v:roundrect.
-* Ignore v:shadow and v:shapetype.
+* Ignore office-word:wrap, v:shadow and v:shapetype.
# 0.3.24
diff --git a/mammoth/docx/__init__.py b/mammoth/docx/__init__.py
index c3701f2..af447b7 100644
--- a/mammoth/docx/__init__.py
+++ b/mammoth/docx/__init__.py
@@ -23,6 +23,7 @@ _namespaces = [
("relationships", "http://schemas.openxmlformats.org/package/2006/relationships"),
("v", "urn:schemas-microsoft-com:vml"),
("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"),
+ ("office-word", "urn:schemas-microsoft-com:office:word"),
]
def read(fileobj):
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py
index a627df9..42c79a2 100644
--- a/mammoth/docx/body_xml.py
+++ b/mammoth/docx/body_xml.py
@@ -42,6 +42,7 @@ class _BodyReader(object):
def _create_reader(numbering, content_types, relationships, styles, docx_file, files):
_ignored_elements = set([
+ "office-word:wrap",
"v:shadow",
"v:shapetype",
"w:bookmarkStart",