aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-10-04 21:58:35 +0100
committerMichael Williamson <mike@zwobble.org>2016-10-04 21:58:35 +0100
commitbf658f8747fbea1509ff30ca0adb374aece916cc (patch)
treebf368fcc9bc6c7110cfe51386243e0869a653c9b /mammoth/docx
parent1a71c66575ccc752b8feecdcf7187387a03155cb (diff)
Treat 0 as false in boolean elements
Diffstat (limited to 'mammoth/docx')
-rw-r--r--mammoth/docx/body_xml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py
index 2e16c26..22d8440 100644
--- a/mammoth/docx/body_xml.py
+++ b/mammoth/docx/body_xml.py
@@ -98,7 +98,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
))
def read_boolean_element(element):
- return element and element.attributes.get("w:val") != "false"
+ return element and element.attributes.get("w:val") not in ["false", "0"]
def paragraph(element):