From 0d2d07466a7111f03049811f1d6aff6c0c1c5018 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 12 Jul 2023 21:41:00 +0200 Subject: [PATCH] Fix module list indentation The other templates are not indented - for a good reason, the whitespace in the template is rendered into the markdown file. That turns the entire module list into a big code snippet, since it says: 'Here is a list of all modules:' followed by and indented block. --- mkdoxy/templates/modules.jinja2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mkdoxy/templates/modules.jinja2 b/mkdoxy/templates/modules.jinja2 index eb8a530d..0e01c97f 100644 --- a/mkdoxy/templates/modules.jinja2 +++ b/mkdoxy/templates/modules.jinja2 @@ -4,12 +4,12 @@ {% if nodes|length > 0 %} Here is a list of all modules: {% for node in nodes recursive %} - {% if node.is_group %} - * [**{{node.title}}**]({{node.url}}) {{node.brief}} - {% if node.has_children %} - {{- loop(node.children)|indent(4, true) }} - {% endif %} - {% endif -%} +{% if node.is_group %} +* [**{{node.title}}**]({{node.url}}) {{node.brief}} +{% if node.has_children %} + {{- loop(node.children)|indent(4, true) }} +{% endif %} +{% endif -%} {% endfor %} {% else %} No modules found.