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:
parent
b21673b321
commit
50fe5dc090
1 changed files with 2 additions and 2 deletions
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/>
|
||||
|
|
Loading…
Reference in a new issue