From f5e0fbf65ba42c99cd12ad8056a8b1e19b2ad80d Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Sun, 30 Sep 2012 14:21:30 +0200 Subject: [PATCH] rst output template tweak for 'required' --- hacking/templates/rst.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacking/templates/rst.j2 b/hacking/templates/rst.j2 index f67e05339b..0d783c267e 100644 --- a/hacking/templates/rst.j2 +++ b/hacking/templates/rst.j2 @@ -32,7 +32,7 @@ {% for (k,v) in options.iteritems() %} @{ k }@ - @{ v.get('required',False) }@ + {% if v.get('required', False) %}yes{% else %}no{% endif %} {% if v['default'] %}@{ v['default'] }@{% endif %} {% for desc in v.description -%}@{ desc | html_ify }@{% endfor -%}