Attachment 'patch.diff'
Download 1 diff -r 5863854a6ccf formatter/text_html.py
2 --- a/formatter/text_html.py Sat Sep 05 22:28:08 2009 +0200
3 +++ b/formatter/text_html.py Sun Sep 06 00:52:20 2009 +0200
4 @@ -524,6 +524,7 @@
5 param through wikiutil.escape, but text_html formatter's _open
6 will do it again, so this just leads to double escaping now).
7 """
8 + _ = self.request.getText
9 if do_escape is not None:
10 if do_escape:
11 logging.warning("Deprecation warning: MoinMoin.formatter.text_html.url being called with do_escape=1/True parameter, please review caller.")
12 @@ -543,6 +544,14 @@
13 if css:
14 attrs['class'] = css
15
16 + # If link opens in a new window, announce it in 'title'
17 + if 'target' in kw:
18 + if kw['target'] == '_blank':
19 + if 'title' in kw:
20 + kw['title'] = kw['title'] + _(' (Link opens in a new window)')
21 + else:
22 + kw['title'] = _('Link opens in a new window')
23 +
24 markup = self._open('a', attr=attrs, **kw)
25 else:
26 markup = self._close('a')
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.