summaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 21:33:53 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 21:33:53 +0000
commit8717dd906667c5bf7a6c11f202ab475b14456990 (patch)
tree572c51bb63c80db953445ecbc31d45405020a550 /mammoth/documents.py
parent4fd08468ad3823d09041a0ffa33aba2dd509e192 (diff)
Add support for reading hyperlinks
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index 851755e..6ce4582 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -4,7 +4,7 @@ Document = collections.namedtuple("Document", ["children"])
Paragraph = collections.namedtuple("Paragraph", ["children", "style_name", "numbering"])
Run = collections.namedtuple("Run", ["children", "style_name", "is_bold", "is_italic"])
Text = collections.namedtuple("Text", ["value"])
-
+Hyperlink = collections.namedtuple("Hyperlink", ["href", "children"])
class Tab(object):
pass
@@ -34,3 +34,4 @@ def tab():
image = Image
+hyperlink = Hyperlink