From afc460c9437bad282651609857f73990060ebbc4 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 9 Nov 2017 12:45:11 -0500 Subject: [PATCH] tollerate 'string' descriptions --- docs/templates/plugin.rst.j2 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index b11b2bc07e5..0fb1ac6712f 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -46,12 +46,16 @@ Synopsis {% if description %} +{% if description is string -%} +* @{ description | convert_symbols_to_format }@ +{% else %} {% for desc in description -%} * @{ desc | convert_symbols_to_format }@ {% endfor %} - +{% endif %} {% endif %} + {% if aliases is defined -%} Aliases: @{ ','.join(aliases) }@ @@ -151,9 +155,13 @@ Options {% endif %} +{% if v.description is string %} +
@{ v.description | replace('\n', '\n ') | html_ify }@
+{% else %} {% for desc in v.description %}
@{ desc | replace('\n', '\n ') | html_ify }@
{% endfor %} +{% endif %} {% if 'aliases' in v and v.aliases %}
aliases: @{ v.aliases|join(', ') }@
{% endif %}