Commit 31dc0ada authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix dokuwiki syntax

/close #157
parent 8adf8d4f
......@@ -433,7 +433,10 @@ class Fork(Element):
else:
return "\n".join([escape_tex(name_line), begin_line, content_lines, end_line])
elif render_type == RenderType.wikitext or render_type == RenderType.dokuwiki:
title_line = "{0} {1} {0}".format("=" * (level + 2), name_line)
equal_signs = level + 2
if render_type == RenderType.dokuwiki:
equal_signs = 6 - level
title_line = "{0} {1} {0}".format("=" * equal_signs, name_line)
content_parts = []
for child in self.children:
part = child.render(render_type, show_private, level=level+1, protocol=protocol)
......
== Beschlüsse ==
====== Beschlüsse ======
<env> if protocol.decisions|length > 0 </env>
<env> for decision in protocol.decisions </env>
* <var>decision.content</var>
* <var>decision.content</var>
<env> endfor </env>
<env> else </env>
* keine Beschlüsse
* keine Beschlüsse
<env> endif </env>
<env> for top in tree.children </env>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment