comparison MoinMoin/formatter/text_gedit.py @ 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 e1ce3040fcd6
comparison
equal deleted inserted replaced
2780:28b851be0844 2781:5507fdc7fe87
58 58
59 def attachment_inlined(self, url, text, **kw): 59 def attachment_inlined(self, url, text, **kw):
60 url = wikiutil.escape(url) 60 url = wikiutil.escape(url)
61 text = wikiutil.escape(text) 61 text = wikiutil.escape(text)
62 if url == text: 62 if url == text:
63 return '<span style="background-color:#ffff11">inline:%s</span>' % url 63 return '<span style="background-color:#ffff11">{{attachment:%s}}</span>' % url
64 else: 64 else:
65 return '<span style="background-color:#ffff11">[inline:%s %s]</span>' % (url, text) 65 return '<span style="background-color:#ffff11">{{attachment:%s|%s}}</span>' % (url, text)
66 66
67 def attachment_link(self, on, url=None, **kw): 67 def attachment_link(self, on, url=None, **kw):
68 _ = self.request.getText 68 _ = self.request.getText
69 if on: 69 if on:
70 pagename = self.page.page_name 70 pagename = self.page.page_name