diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-10-04 21:58:35 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-10-04 21:58:35 +0100 |
| commit | bf658f8747fbea1509ff30ca0adb374aece916cc (patch) | |
| tree | bf368fcc9bc6c7110cfe51386243e0869a653c9b /mammoth | |
| parent | 1a71c66575ccc752b8feecdcf7187387a03155cb (diff) | |
Treat 0 as false in boolean elements
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/docx/body_xml.py | 2 |
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): |
