diff --git a/hacking/templates/rst.j2 b/hacking/templates/rst.j2 index 6a2108a638..f67e05339b 100644 --- a/hacking/templates/rst.j2 +++ b/hacking/templates/rst.j2 @@ -18,7 +18,7 @@ @{ desc | jpfunc }@ {% endfor %} -{% if options is defined -%} +{% if options -%} .. raw:: html
@{ k }@ | @{ v.get('required',False) }@ | -@{ v['default'] }@ | +{% if v['default'] %}@{ v['default'] }@{% endif %} |
|
{% for desc in v.description -%}@{ desc | html_ify }@{% endfor -%} |