From fe6fb7ea7380280c8589548fd61b121a917a356a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 30 Nov 2024 13:56:29 +0000 Subject: Read complex field checkboxes, always unchecked --- mammoth/docx/xmlparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mammoth/docx/xmlparser.py') diff --git a/mammoth/docx/xmlparser.py b/mammoth/docx/xmlparser.py index bb84afd..2e22cec 100644 --- a/mammoth/docx/xmlparser.py +++ b/mammoth/docx/xmlparser.py @@ -10,7 +10,7 @@ class XmlElement(object): children = cobble.field() def find_child_or_null(self, name): - return self.find_child(name) or _null_xml_element + return self.find_child(name) or null_xml_element def find_child(self, name): for child in self.children: @@ -50,7 +50,7 @@ class NullXmlElement(object): return None -_null_xml_element = NullXmlElement() +null_xml_element = NullXmlElement() @cobble.data -- cgit v1.2.3