changeset 2565:7c400e439160

fix bug in include macro: needs to use rawHTML
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 25 Jul 2007 14:37:08 +0200
parents 92a7f41c3cad
children d5ef57193ccb
files MoinMoin/macro/Include.py
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/Include.py	Wed Jul 25 14:36:14 2007 +0200
+++ b/MoinMoin/macro/Include.py	Wed Jul 25 14:37:08 2007 +0200
@@ -201,11 +201,12 @@
                 request._page_headings[pntt] += 1
                 if request._page_headings[pntt] > 1:
                     hid += '-%d' % (request._page_headings[pntt], )
-                result.append(
-                    macro.formatter.heading(1, level, id=hid) +
-                    inc_page.link_to(request, heading, css_class="include-heading-link") +
-                    macro.formatter.heading(0, level)
-                )
+                link = inc_page.link_to(request, heading, css_class="include-heading-link")
+                result.extend([
+                    macro.formatter.heading(1, level, id=hid),
+                    macro.formatter.rawHTML(link),
+                    macro.formatter.heading(0, level),
+                ])
 
         # set or increment include marker
         this_page._macroInclude_pagelist[inc_name] = \