diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-06-17 15:49:04 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-06-17 15:49:04 +0100 |
| commit | 3bfa77d64e69d20609c8321a067bfa2651a7eabc (patch) | |
| tree | 4cab2b0ff450665c3b164a27292b18583c339059 /mammoth/docx | |
| parent | 6478f5c20b86534c471793041f4e5b46f0cd6484 (diff) | |
Add support for strikethrough
Diffstat (limited to 'mammoth/docx')
| -rw-r--r-- | mammoth/docx/document_xml.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py index 84e2790..3147ed4 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -80,6 +80,7 @@ def _create_reader(numbering, content_types, relationships, styles, note_element is_bold = properties.find_child("w:b") is_italic = properties.find_child("w:i") is_underline = properties.find_child("w:u") + is_strikethrough = properties.find_child("w:strike") return _read_xml_elements(element.children) \ .map(lambda children: documents.run( @@ -89,6 +90,7 @@ def _create_reader(numbering, content_types, relationships, styles, note_element is_bold=is_bold, is_italic=is_italic, is_underline=is_underline, + is_strikethrough=is_strikethrough, vertical_alignment=vertical_alignment, )) |
