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)
pull/41801/head
Will Thames 8 years ago committed by Martin Krizek
parent b21673b321
commit 50fe5dc090

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

Loading…
Cancel
Save