From 6448068c17db2ee0c8a52793314a98f74e3211e6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 30 Dec 2024 10:07:26 +0000 Subject: Add children to empty element --- mammoth/docx/xmlparser.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3