Skip to content

Commit

Permalink
Fix module list indentation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gladhorn committed Jul 12, 2023
1 parent ec3438a commit 0d2d074
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mkdoxy/templates/modules.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0d2d074

Please sign in to comment.