Commit 4c1ef8f3 authored by Matthias Braun's avatar Matthias Braun
Browse files

gen_docu: output 'None' for an empty flags list

parent cee5f8c9
......@@ -99,9 +99,13 @@ docu_template = env.from_string(
</dl>
{% set comma = joiner(", ") %}
<h5>Flags</h5>
{% if node.flags.__len__() > 0 %}
{% for flag in node.flags -%}
{{comma()}}{{flag|doxylink("irop_flag_" + flag)}}
{%- endfor %}
{% else %}
None
{% endif %}
<h5>{{"API"|doxygrouplink(node.name)}}</h5>
<hr/>
</div>
......
Supports Markdown
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