From f772284b08698a47430549f18abc6e004ac06fb6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 30 May 2017 11:10:05 +0100 Subject: Read target frame on hyperlinks --- mammoth/documents.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mammoth/documents.py') diff --git a/mammoth/documents.py b/mammoth/documents.py index b440846..04e9d8e 100644 --- a/mammoth/documents.py +++ b/mammoth/documents.py @@ -41,6 +41,7 @@ class Text(Element): class Hyperlink(HasChildren): href = cobble.field() anchor = cobble.field() + target_frame = cobble.field() @cobble.data class Table(HasChildren): @@ -120,8 +121,8 @@ def tab(): image = Image -def hyperlink(children, href=None, anchor=None): - return Hyperlink(href=href, anchor=anchor, children=children) +def hyperlink(children, href=None, anchor=None, target_frame=None): + return Hyperlink(href=href, anchor=anchor, target_frame=target_frame, children=children) @cobble.data -- cgit v1.2.3