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 7f2750c..4f67850 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -3,7 +3,7 @@ import dodge
Document = dodge.data_class("Document", ["children"])
Paragraph = dodge.data_class("Paragraph", ["children", "style_id", "style_name", "numbering"])
-Run = dodge.data_class("Run", ["children", "style_id", "style_name", "is_bold", "is_italic"])
+Run = dodge.data_class("Run", ["children", "style_id", "style_name", "is_bold", "is_italic", "is_underline"])
Text = dodge.data_class("Text", ["value"])
Hyperlink = dodge.data_class("Hyperlink", ["href", "children"])
Table = dodge.data_class("Table", ["children"])
@@ -26,8 +26,8 @@ document = Document
def paragraph(children, style_id=None, style_name=None, numbering=None):
return Paragraph(children, style_id, style_name, numbering)
-def run(children, style_id=None, style_name=None, is_bold=None, is_italic=None):
- return Run(children, style_id, style_name, bool(is_bold), bool(is_italic))
+def run(children, style_id=None, style_name=None, is_bold=None, is_italic=None, is_underline=None):
+ return Run(children, style_id, style_name, bool(is_bold), bool(is_italic), bool(is_underline))
text = Text