tollerate 'string' descriptions

pull/32909/head
Brian Coca 7 years ago committed by Brian Coca
parent 73d6975611
commit afc460c943

@ -46,12 +46,16 @@ Synopsis
{% if description %} {% if description %}
{% if description is string -%}
* @{ description | convert_symbols_to_format }@
{% else %}
{% for desc in description -%} {% for desc in description -%}
* @{ desc | convert_symbols_to_format }@ * @{ desc | convert_symbols_to_format }@
{% endfor %} {% endfor %}
{% endif %}
{% endif %} {% endif %}
{% if aliases is defined -%} {% if aliases is defined -%}
Aliases: @{ ','.join(aliases) }@ Aliases: @{ ','.join(aliases) }@
@ -151,9 +155,13 @@ Options
{% endif %} {% endif %}
<td></td> <td></td>
<td> <td>
{% if v.description is string %}
<div>@{ v.description | replace('\n', '\n ') | html_ify }@</div>
{% else %}
{% for desc in v.description %} {% for desc in v.description %}
<div>@{ desc | replace('\n', '\n ') | html_ify }@</div> <div>@{ desc | replace('\n', '\n ') | html_ify }@</div>
{% endfor %} {% endfor %}
{% endif %}
{% if 'aliases' in v and v.aliases %} {% if 'aliases' in v and v.aliases %}
</br><div style="font-size: small;">aliases: @{ v.aliases|join(', ') }@</div> </br><div style="font-size: small;">aliases: @{ v.aliases|join(', ') }@</div>
{% endif %} {% endif %}

Loading…
Cancel
Save