aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/complex_fields.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-02-19 21:35:42 +0000
committerMichael Williamson <mike@zwobble.org>2017-02-19 21:35:42 +0000
commit74bbea738776bad4ddbcc1af19a44114e1defb07 (patch)
tree50b8d9e9887f2772b989b97fd0d00ec190ad6941 /mammoth/docx/complex_fields.py
parentc8f835e3ed5d464f7c6bf15d77dce40918afd11a (diff)
Handle hyperlinks created with complex fields
Diffstat (limited to 'mammoth/docx/complex_fields.py')
-rw-r--r--mammoth/docx/complex_fields.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/mammoth/docx/complex_fields.py b/mammoth/docx/complex_fields.py
new file mode 100644
index 0000000..d1d95af
--- /dev/null
+++ b/mammoth/docx/complex_fields.py
@@ -0,0 +1,11 @@
+class unknown(object):
+ pass
+
+
+class Hyperlink(object):
+ def __init__(self, href):
+ self.href = href
+
+
+def hyperlink(href):
+ return Hyperlink(href)