aboutsummaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index 215df8e..03975b2 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -2,7 +2,7 @@ import collections
Document = collections.namedtuple("Document", ["children"])
Paragraph = collections.namedtuple("Paragraph", ["children", "style_name", "numbering"])
-Run = collections.namedtuple("Run", ["children", "style_name"])
+Run = collections.namedtuple("Run", ["children", "style_name", "is_bold"])
Text = collections.namedtuple("Text", ["value"])
@@ -11,7 +11,7 @@ document = Document
def paragraph(children, style_name=None, numbering=None):
return Paragraph(children, style_name, numbering)
-def run(children, style_name=None):
- return Run(children, style_name)
+def run(children, style_name=None, is_bold=None):
+ return Run(children, style_name, bool(is_bold))
text = Text