From d03970a839cab967a8013ee5d18c74454d3174c1 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 22 Apr 2017 22:10:21 +0100 Subject: Add image converters for WMF using LibreOffice and ImageMagick --- mammoth/documents.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'mammoth/documents.py') 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): -- cgit v1.2.3