changeset 3980:c2e6b2b00277

back to previous code because of keep pagename
author Byeongweon [tasyblue@gmail.com]
date Wed, 23 Jul 2008 16:37:38 +0900
parents 0b1d6e252e1f
children 2aaf071baeda
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Jul 23 16:02:03 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Jul 23 16:37:38 2008 +0900
@@ -1164,7 +1164,9 @@
                 else:
                     raise ConvertError("Invalid InterWiki link: '%s'" % href)
             elif css_class == "badinterwiki" and title:
-                pagename = wikiutil.url_unquote(href.lstrip('/'))
+                if href == "/": # we used this as replacement for empty href
+                    href = ""
+                pagename = wikiutil.url_unquote(href)
                 interwikiname = "%s:%s" % (title, pagename)
             if interwikiname and pagename == desc:
                 if ' ' in interwikiname: