diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-07-18 15:17:52 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-07-18 15:17:52 +0100 |
| commit | 0b4abd3026ac77d8b7ea4f9adde759ca90abc2f6 (patch) | |
| tree | a159f24d8b178c8106fe2e1b01200966950f1197 /mammoth/docx | |
| parent | 0bee7e30ca0f184169196e46a85e3a9d9c92eea0 (diff) | |
Read underlined runs
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 75d21fb..32d655c 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -62,6 +62,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file): is_bold = properties.find_child("w:b") is_italic = properties.find_child("w:i") + is_underline = properties.find_child("w:u") return _read_xml_elements(element.children) \ .map(lambda children: documents.run( @@ -70,6 +71,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file): style_name=style_name, is_bold=is_bold, is_italic=is_italic, + is_underline=is_underline, )) |
