mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-22 08:41:09 +00: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:
committed by
Martin Krizek
parent
b21673b321
commit
50fe5dc090
4
docs/templates/plugin.rst.j2
vendored
4
docs/templates/plugin.rst.j2
vendored
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user