changeset 201:e3e087c3c6a3

use request.normalizePagename() while collecting pagelinks imported from: moin--main--1.5--patch-203
author Florian Festi <Florian.Festi@trick.informatik.uni-stuttgart.de>
date Tue, 08 Nov 2005 12:14:00 +0000
parents 7c5bba88937b
children 76c22aae6a64
files MoinMoin/formatter/base.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/base.py	Tue Nov 08 09:59:37 2005 +0000
+++ b/MoinMoin/formatter/base.py	Tue Nov 08 12:14:00 2005 +0000
@@ -79,7 +79,7 @@
             return ''
         if not pagename and page:
             pagename = page.page_name
-        pagename = pagename.replace(" ", "_")
+        pagename = self.request.normalizePagename(pagename)
         if pagename and pagename not in self.pagelinks:
             self.pagelinks.append(pagename)