aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/document_xml.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 13:34:41 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 13:34:41 +0000
commitbc62c8382815d5ca3b0812247cbc46ba8430ebab (patch)
tree7cd1216dad37b160e2a05c2bdfb251e4e6d6ab9a /mammoth/docx/document_xml.py
parentff8b54b819c08e97cc35dc123fdb4b64969d4ef6 (diff)
Read bold property of runs
Diffstat (limited to 'mammoth/docx/document_xml.py')
-rw-r--r--mammoth/docx/document_xml.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py
index c3fb1b7..6488a25 100644
--- a/mammoth/docx/document_xml.py
+++ b/mammoth/docx/document_xml.py
@@ -26,7 +26,13 @@ def _create_reader(numbering):
style_name = properties \
.find_child_or_null("w:rStyle") \
.attributes.get("w:val")
- return documents.run(_read_xml_elements(element.children), style_name)
+ is_bold = properties.find_child("w:b")
+
+ return documents.run(
+ children=_read_xml_elements(element.children),
+ style_name=style_name,
+ is_bold=is_bold,
+ )
@handler("w:p")