diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:10:05 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:10:05 +0100 |
| commit | f772284b08698a47430549f18abc6e004ac06fb6 (patch) | |
| tree | 6b52921e7fc9d228dfef1227bc999344fd4b3253 /mammoth/documents.py | |
| parent | 803e22c8b95faa99aad82a4c9a30aa132f123416 (diff) | |
Read target frame on hyperlinks
Diffstat (limited to 'mammoth/documents.py')
| -rw-r--r-- | mammoth/documents.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
