1
0
Fork 0
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:
Dag Wieers 2018-02-28 18:16:18 +01:00 committed by John R Barker
parent 38abda544f
commit 3b27d723fb

View file

@ -65,16 +65,15 @@ Aliases: @{ ','.join(aliases) }@
{% endif %}
{% if requirements %}
{% set req = 'Requirements' %}
{% set req_title = 'Requirements' %}
{% if plugin_type == 'module' %}
{% set req = req + ' (on host that executes module)' %}
{% set req_title = req_title + ' (on host that executes module)' %}
{% endif %}
{% set req_len = req|length %}
@{ req }@
@{ '-' * req_len }@
@{ req_title }@
@{ '-' * req_title|length }@
{% for req in requirements %}
* @{ req | convert_symbols_to_format }@
* @{ req | convert_symbols_to_format }@
{% endfor %}
{% endif %}