aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/complex_fields.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2021-08-01 17:20:33 +0100
committerMichael Williamson <mike@zwobble.org>2021-08-01 17:20:33 +0100
commitb537a3713700b4fc40a23d0ca51b11846d562328 (patch)
tree19a8ddebc9ac8f36c1fc01b806982b46bcded2fc /mammoth/docx/complex_fields.py
parent30d24cb9dee83df7a1b108fbc83cdfec31b81b9a (diff)
Handle internal hyperlinks created with complex fields
Diffstat (limited to 'mammoth/docx/complex_fields.py')
-rw-r--r--mammoth/docx/complex_fields.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mammoth/docx/complex_fields.py b/mammoth/docx/complex_fields.py
index d1d95af..75bc05a 100644
--- a/mammoth/docx/complex_fields.py
+++ b/mammoth/docx/complex_fields.py
@@ -3,9 +3,9 @@ class unknown(object):
class Hyperlink(object):
- def __init__(self, href):
- self.href = href
+ def __init__(self, kwargs):
+ self.kwargs = kwargs
-def hyperlink(href):
- return Hyperlink(href)
+def hyperlink(kwargs):
+ return Hyperlink(kwargs=kwargs)