changeset 5104:b631aca46a48

drawings: fix creole/rst parsers
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 13 Sep 2009 16:48:59 +0200
parents 6c620a7e2def
children 3feeab009683
files MoinMoin/parser/text_creole.py MoinMoin/parser/text_rst.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_creole.py	Sun Sep 13 16:33:27 2009 +0200
+++ b/MoinMoin/parser/text_creole.py	Sun Sep 13 16:48:59 2009 +0200
@@ -343,6 +343,7 @@
                     return self.formatter.attachment_image(
                         url, alt=text, html_class='image')
                 elif scheme == 'drawing':
+                    url = wikiutil.drawing2fname(url)
                     return self.formatter.attachment_drawing(url, text, alt=text)
                 else:
                     pass
--- a/MoinMoin/parser/text_rst.py	Sun Sep 13 16:33:27 2009 +0200
+++ b/MoinMoin/parser/text_rst.py	Sun Sep 13 16:48:59 2009 +0200
@@ -363,7 +363,7 @@
                 self.wiki_text = self.fixup_wiki_formatting(self.wiki_text)
                 self.add_wiki_markup()
 
-            if prefix == 'drawing': # twikidraw drawing
+            if prefix == 'drawing':
                 self.process_wiki_text("[[%s]]" % refuri)
                 self.wiki_text = self.fixup_wiki_formatting(self.wiki_text)
                 self.add_wiki_markup()