1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Trim parameter documentation when generating docs (#38470)

While the HTML produced is perfectly valid, without the `trim` filter,
a lot of warnings are emitted (700 lines of warnings out of 2812 are
eliminated by this change)
This commit is contained in:
Will Thames 2018-06-21 21:51:58 +10:00 committed by Martin Krizek
parent b21673b321
commit 50fe5dc090

View file

@ -345,10 +345,10 @@ Common return values are documented :ref:`here <common_return_values>`, the foll
<td>@{ value.returned | html_ify }@</td> <td>@{ value.returned | html_ify }@</td>
<td> <td>
{% if value.description is string %} {% if value.description is string %}
<div>@{ value.description | html_ify |indent(4)}@</div> <div>@{ value.description | html_ify |indent(4) | trim}@</div>
{% else %} {% else %}
{% for desc in value.description %} {% for desc in value.description %}
<div>@{ desc | html_ify |indent(4)}@</div> <div>@{ desc | html_ify |indent(4) | trim}@</div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<br/> <br/>