aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/document_xml.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 13:36:13 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 13:36:13 +0000
commit71ba0de364add2c5ac0285ae1d8e69cab132baf8 (patch)
tree593a4069882f9dc6913a12bb2ac356d8e4ef7f1f /mammoth/docx/document_xml.py
parentbc62c8382815d5ca3b0812247cbc46ba8430ebab (diff)
Read italic property of runs
Diffstat (limited to 'mammoth/docx/document_xml.py')
-rw-r--r--mammoth/docx/document_xml.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py
index 6488a25..4bfb8d1 100644
--- a/mammoth/docx/document_xml.py
+++ b/mammoth/docx/document_xml.py
@@ -27,11 +27,13 @@ def _create_reader(numbering):
.find_child_or_null("w:rStyle") \
.attributes.get("w:val")
is_bold = properties.find_child("w:b")
+ is_italic = properties.find_child("w:i")
return documents.run(
children=_read_xml_elements(element.children),
style_name=style_name,
is_bold=is_bold,
+ is_italic=is_italic,
)