Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
4c1ef8f3
Commit
4c1ef8f3
authored
Jun 15, 2012
by
Matthias Braun
Browse files
gen_docu: output 'None' for an empty flags list
parent
cee5f8c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/gen_docu.py
View file @
4c1ef8f3
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment