changeset 2564:92a7f41c3cad

don't overwrite rawHTML in toc macro
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 25 Jul 2007 14:36:14 +0200
parents 389e427e5bfb
children 7c400e439160
files MoinMoin/macro/TableOfContents.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/TableOfContents.py	Wed Jul 25 13:48:45 2007 +0200
+++ b/MoinMoin/macro/TableOfContents.py	Wed Jul 25 14:36:14 2007 +0200
@@ -98,7 +98,6 @@
     parser = _anything_return_empty
     div = _anything_return_empty
     span = _anything_return_empty
-    rawHTML = _anything_return_empty
     escapedText = _anything_return_empty
     comment = _anything_return_empty
 
@@ -121,6 +120,9 @@
                                             count_hit=False,
                                             omit_footnotes=True)
 
+    # workaround for include macro
+    macro.request._page_headings = {}
+
     _ = macro.request.getText
 
     result = [