Description
if you set rst as defaultmarkup in wikiconfig.py and write by #format wiki content you don't get a table of contents shown.
Steps to reproduce
set rst as default markup write on a page #fromat wiki <<TableOfContents>> = a = lorem = b = ipsum
Example
Component selection
- general
Details
this wiki
Workaround
Discussion
This solve that issue and indicates also the reason why it is broken.
diff -r 62202e5435e2 MoinMoin/macro/TableOfContents.py
--- a/MoinMoin/macro/TableOfContents.py Tue Jul 05 20:07:18 2011 +0200
+++ b/MoinMoin/macro/TableOfContents.py Fri Sep 30 17:09:05 2011 +0200
@@ -157,8 +157,10 @@
# this is so we get a correctly updated TOC if we just preview in the editor -
# the new content is not stored on disk yet, but available as macro.parser.raw:
- p.set_raw_body(macro.parser.raw, modified=1)
+ format = '#format %s\n' % p.pi['format']
+ p.set_raw_body(format + macro.parser.raw, modified=1)
+
output = macro.request.redirectedOutput(p.send_page,
content_only=True,
count_hit=False,
Plan
- Priority:
- Assigned to:
Status: fixed http://hg.moinmo.in/moin/1.9/rev/7cd445089a84
