changeset 2781:5507fdc7fe87

gedit formatter: use new transclusion syntax for attachment_inline when feeding gui editor
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 28 Aug 2007 14:15:07 +0200
parents 28b851be0844
children 4c7a5994fe34
files MoinMoin/formatter/text_gedit.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_gedit.py	Tue Aug 28 14:10:33 2007 +0200
+++ b/MoinMoin/formatter/text_gedit.py	Tue Aug 28 14:15:07 2007 +0200
@@ -60,9 +60,9 @@
         url = wikiutil.escape(url)
         text = wikiutil.escape(text)
         if url == text:
-            return '<span style="background-color:#ffff11">inline:%s</span>' % url
+            return '<span style="background-color:#ffff11">{{attachment:%s}}</span>' % url
         else:
-            return '<span style="background-color:#ffff11">[inline:%s %s]</span>' % (url, text)
+            return '<span style="background-color:#ffff11">{{attachment:%s|%s}}</span>' % (url, text)
 
     def attachment_link(self, on, url=None, **kw):
         _ = self.request.getText