From 71ba0de364add2c5ac0285ae1d8e69cab132baf8 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 1 Dec 2013 13:36:13 +0000 Subject: Read italic property of runs --- mammoth/docx/document_xml.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mammoth/docx/document_xml.py') 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, ) -- cgit v1.2.3