summaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-12-30 10:07:26 +0000
committerMichael Williamson <mike@zwobble.org>2024-12-30 10:07:26 +0000
commit6448068c17db2ee0c8a52793314a98f74e3211e6 (patch)
treeda8574bcec1541b528699c21d3dacd73ce140cc9 /mammoth
parent237d861c147fd6027b68c910425ebb361dd7b0e2 (diff)
Add children to empty element
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/docx/xmlparser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mammoth/docx/xmlparser.py b/mammoth/docx/xmlparser.py
index 2e22cec..1ba415d 100644
--- a/mammoth/docx/xmlparser.py
+++ b/mammoth/docx/xmlparser.py
@@ -42,6 +42,7 @@ class XmlElementList(object):
class NullXmlElement(object):
attributes = {}
+ children = []
def find_child_or_null(self, name):
return self