diff MoinMoin/script/migration/_conv160a_wiki.py @ 4490:b120d9978144

1.6.0a mig script/converter: fixed inline/drawing conversion, added more tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 16 Jan 2009 12:55:31 +0100
parents a835ada897e0
children 3caaa8c74c41 b0319cfcb1bc
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160a_wiki.py	Fri Jan 16 01:42:02 2009 +0100
+++ b/MoinMoin/script/migration/_conv160a_wiki.py	Fri Jan 16 12:55:31 2009 +0100
@@ -394,8 +394,12 @@
                 return self.interwiki(word, pretty_url=1)
             if scheme in self.attachment_schemas:
                 m = self.attachment(word)
-                # with url_bracket markup, 1.6.0a parser does not embed pictures, but link!
-                return '[[%s]]' % m[2:-2]
+                if scheme == 'attachment':
+                    # with url_bracket markup, 1.6.0a parser does not embed pictures, but link!
+                    return '[[%s]]' % m[2:-2]
+                else:
+                    # drawing and inline
+                    return m
 
             words = word.split(None, 1)
             if len(words) == 1: