From b537a3713700b4fc40a23d0ca51b11846d562328 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 1 Aug 2021 17:20:33 +0100 Subject: Handle internal hyperlinks created with complex fields --- mammoth/docx/complex_fields.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mammoth/docx/complex_fields.py') 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) -- cgit v1.2.3