mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix indentation of requirements (#36813)
Just discovered that the requirements were indented, whereas all other lists were not. This makes them stand out for no good reason.
This commit is contained in:
parent
38abda544f
commit
3b27d723fb
1 changed files with 5 additions and 6 deletions
9
docs/templates/plugin.rst.j2
vendored
9
docs/templates/plugin.rst.j2
vendored
|
@ -65,13 +65,12 @@ Aliases: @{ ','.join(aliases) }@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if requirements %}
|
{% if requirements %}
|
||||||
{% set req = 'Requirements' %}
|
{% set req_title = 'Requirements' %}
|
||||||
{% if plugin_type == 'module' %}
|
{% if plugin_type == 'module' %}
|
||||||
{% set req = req + ' (on host that executes module)' %}
|
{% set req_title = req_title + ' (on host that executes module)' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set req_len = req|length %}
|
@{ req_title }@
|
||||||
@{ req }@
|
@{ '-' * req_title|length }@
|
||||||
@{ '-' * req_len }@
|
|
||||||
|
|
||||||
{% for req in requirements %}
|
{% for req in requirements %}
|
||||||
* @{ req | convert_symbols_to_format }@
|
* @{ req | convert_symbols_to_format }@
|
||||||
|
|
Loading…
Reference in a new issue