From 74bbea738776bad4ddbcc1af19a44114e1defb07 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 19 Feb 2017 21:35:42 +0000 Subject: Handle hyperlinks created with complex fields --- mammoth/docx/complex_fields.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mammoth/docx/complex_fields.py (limited to 'mammoth/docx/complex_fields.py') 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) -- cgit v1.2.3