aboutsummaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-08-05 16:36:15 +0100
committerMichael Williamson <mike@zwobble.org>2014-08-05 16:36:15 +0100
commitef76dd48d78fc715ce428e07cec2401b3bfbee74 (patch)
treec5d673054c3e6be30430ba72dfa5a64499f21c5f /mammoth/documents.py
parent5b82690434d0cbccfe7d58b4ba00a402c83087b3 (diff)
Add support for reading w:br
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index 4f67850..326fbeb 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -9,6 +9,7 @@ Hyperlink = dodge.data_class("Hyperlink", ["href", "children"])
Table = dodge.data_class("Table", ["children"])
TableRow = dodge.data_class("TableRow", ["children"])
TableCell = dodge.data_class("TableCell", ["children"])
+LineBreak = dodge.data_class("LineBreak", [])
class Tab(object):
pass
@@ -42,6 +43,7 @@ hyperlink = Hyperlink
table = Table
table_row = TableRow
table_cell = TableCell
+line_break = LineBreak
def numbering_level(level_index, is_ordered):
return _NumberingLevel(str(level_index), bool(is_ordered))