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,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 }@