comparison MoinMoin/script/migration/_conv160_wiki.py @ 2833:ea9a38d2ec09

1.6 converter: if ImageLink target is inline:..., then replace it with attachment: as we do not support inline: any more
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 11 Sep 2007 21:30:35 +0200
parents 7bde33d15531
children 5dfd26496da8
comparison
equal deleted inserted replaced
2832:bda6fe7c015b 2833:ea9a38d2ec09
166 if '://' not in image: 166 if '://' not in image:
167 # if it is not a URL, it is meant as attachment 167 # if it is not a URL, it is meant as attachment
168 image = u'attachment:%s' % image 168 image = u'attachment:%s' % image
169 if not target: 169 if not target:
170 target = image 170 target = image
171 elif target.startswith('inline:'):
172 target = 'attachment:' + target[7:] # we don't support inline:
171 image_attrs = [] 173 image_attrs = []
172 alt = kw.get('alt') or '' 174 alt = kw.get('alt') or ''
173 width = kw.get('width') 175 width = kw.get('width')
174 if width is not None: 176 if width is not None:
175 image_attrs.append(u"width=%s" % width) 177 image_attrs.append(u"width=%s" % width)