comparison MoinMoin/macro/TableOfContents.py @ 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 d5ef57193ccb
comparison
equal deleted inserted replaced
2563:389e427e5bfb 2564:92a7f41c3cad
96 table_cell = _anything_return_empty 96 table_cell = _anything_return_empty
97 _get_bang_args = _anything_return_empty 97 _get_bang_args = _anything_return_empty
98 parser = _anything_return_empty 98 parser = _anything_return_empty
99 div = _anything_return_empty 99 div = _anything_return_empty
100 span = _anything_return_empty 100 span = _anything_return_empty
101 rawHTML = _anything_return_empty
102 escapedText = _anything_return_empty 101 escapedText = _anything_return_empty
103 comment = _anything_return_empty 102 comment = _anything_return_empty
104 103
105 def macro_TableOfContents(macro, maxdepth=int): 104 def macro_TableOfContents(macro, maxdepth=int):
106 """ 105 """
118 p = Page(macro.request, pname, formatter=tocfm, rev=macro.request.rev) 117 p = Page(macro.request, pname, formatter=tocfm, rev=macro.request.rev)
119 output = macro.request.redirectedOutput(p.send_page, 118 output = macro.request.redirectedOutput(p.send_page,
120 content_only=True, 119 content_only=True,
121 count_hit=False, 120 count_hit=False,
122 omit_footnotes=True) 121 omit_footnotes=True)
122
123 # workaround for include macro
124 macro.request._page_headings = {}
123 125
124 _ = macro.request.getText 126 _ = macro.request.getText
125 127
126 result = [ 128 result = [
127 macro.formatter.div(1, css_class="table-of-contents"), 129 macro.formatter.div(1, css_class="table-of-contents"),