diff 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
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160_wiki.py	Tue Sep 11 19:04:35 2007 +0200
+++ b/MoinMoin/script/migration/_conv160_wiki.py	Tue Sep 11 21:30:35 2007 +0200
@@ -168,6 +168,8 @@
                 image = u'attachment:%s' % image
             if not target:
                 target = image
+            elif target.startswith('inline:'):
+                target = 'attachment:' + target[7:] # we don't support inline:
             image_attrs = []
             alt = kw.get('alt') or ''
             width = kw.get('width')