changeset 832:0710dd481945

fix gui converter link conversion
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 14 Jun 2006 10:40:55 +0200
parents b9153b37c47f
children f6e52d938ba3 4bd5f5f8f95a
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Sun Jun 11 20:58:20 2006 +0200
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Jun 14 10:40:55 2006 +0200
@@ -1113,7 +1113,7 @@
                 self.text.append("%s" % interwikiname)
                 return
             elif title == 'Self':
-                self.text.append("[:%s:%s]" % (href, text))
+                self.text.append('["%s" %s]' % (href, text))
                 return
             elif interwikiname:
                 self.text.append("[wiki:%s %s]" % (interwikiname, text))
@@ -1129,9 +1129,9 @@
             if title and title.startswith("attachment:"):
                 url = wikiutil.url_unquote(title[len("attachment:"):])
                 if url != text:
-                    self.text.append("[%s %s]" % (title, text))
+                    self.text.append('[attachment:"%s" %s]' % (url, text))
                 else:
-                    self.text.extend([self.white_space, title, self.white_space])
+                    self.text.extend([self.white_space, 'attachment:"%s"' % url, self.white_space])
             # wiki link
             elif href.startswith(scriptname):
                 pagename = href[len(scriptname):]
@@ -1149,7 +1149,7 @@
                     self.text.append(wikiutil.pagelinkmarkup(text))
                 # labeled link
                 else:
-                    self.text.append("[:%s:%s]" % (pagename, text))
+                    self.text.append('["%s" %s]' % (pagename, text))
             # mailto link
             elif href.startswith("mailto:"):
                 if href[len("mailto:"):] == text: