Skip to content
Snippets Groups Projects
Commit 31dc0ada authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix dokuwiki syntax

/close #157
parent 8adf8d4f
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment