From 91d286aa2aadab7822f7ad05e93088c617bda16f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 6 Dec 2015 14:30:48 +0000 Subject: Ignore v:shapetype --- NEWS | 2 +- mammoth/docx/body_xml.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 138b5ab..e1e78ae 100644 --- a/NEWS +++ b/NEWS @@ -4,7 +4,7 @@ * Read children of v:roundrect. -* Ignore v:shadow. +* Ignore v:shadow and v:shapetype. # 0.3.24 diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py index fc57070..a627df9 100644 --- a/mammoth/docx/body_xml.py +++ b/mammoth/docx/body_xml.py @@ -43,6 +43,7 @@ class _BodyReader(object): def _create_reader(numbering, content_types, relationships, styles, docx_file, files): _ignored_elements = set([ "v:shadow", + "v:shapetype", "w:bookmarkStart", "w:bookmarkEnd", "w:sectPr", -- cgit v1.2.3