changeset 2887:aea1aadf2cfb

gui converter: generate bracketed syntax for attachments, ever
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 05 Oct 2007 07:54:22 -0700
parents dbd445620f9d
children 78d96fd775ba
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Oct 03 10:47:31 2007 +0200
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Fri Oct 05 07:54:22 2007 -0700
@@ -1155,10 +1155,10 @@
             # Attachments
             if title.startswith("attachment:"):
                 attname = wikiutil.url_unquote(title[len("attachment:"):])
-                if attname != desc or ' ' in attname:
+                if attname != desc:
                     self.text.append('[[attachment:%s|%s]]' % (attname, desc))
                 else:
-                    self.text.extend([self.white_space, 'attachment:%s' % attname, self.white_space])
+                    self.text.append('[[attachment:%s]]' % (attname, ))
             # wiki link
             elif href.startswith(scriptname):
                 pagename = href[len(scriptname):]