diff MoinMoin/formatter/text_html.py @ 4566:2eaf4b42b400

merged moin/1.8
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 10 Feb 2009 13:21:59 +0100
parents 910474dded06 050428d1c044
children de10b1613647
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Tue Feb 10 12:51:02 2009 +0100
+++ b/MoinMoin/formatter/text_html.py	Tue Feb 10 13:21:59 2009 +0100
@@ -502,7 +502,7 @@
                     href = '%s%s%s' % (href, separator, wikiutil.makeQueryString(querystr))
                 anchor = kw.get('anchor')
                 if anchor:
-                    href = '%s#%s' % (href, anchor)
+                    href = '%s#%s' % (href, self.sanitize_to_id(anchor))
                 if wikitag_bad:
                     html_class = 'badinterwiki'
                 else: