summaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-04-22 22:10:21 +0100
committerMichael Williamson <mike@zwobble.org>2017-04-22 22:10:21 +0100
commitd03970a839cab967a8013ee5d18c74454d3174c1 (patch)
treebd84e3183e92658bc4636ff033aadfc7d363c456 /mammoth/documents.py
parentc1eeb07720c452209d8c35b38aec9ae2bd76ca82 (diff)
Add image converters for WMF using LibreOffice and ImageMagick
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index b1e2c1e..a6e125c 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -69,12 +69,11 @@ class Tab(Element):
pass
-@cobble.visitable
+@cobble.data
class Image(Element):
- def __init__(self, alt_text, content_type, open):
- self.alt_text = alt_text
- self.content_type = content_type
- self.open = open
+ alt_text = cobble.field()
+ content_type = cobble.field()
+ open = cobble.field()
def document(children, notes=None, comments=None):