Skip to content

Commit abc16e7

Browse files
Fix indent for other keys like :Version Added:. (#2880) (#2881)
(cherry picked from commit 4ae2365) Co-authored-by: Felix Fontein <[email protected]>
1 parent 7d36e48 commit abc16e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/templates/config.rst.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ you can use the command line utility mentioned above (`ansible-config`) to brows
151151
{% if config.get('ini', False) %}
152152
:Ini:
153153
{% for ini_map in config['ini']|sort(attribute='section') %}
154-
{% if config['ini']|length > 1 %}- {% endif %}:Section: [{{ini_map['section']}}]
155-
{% if config['ini']|length > 1 %} {% endif %}:Key: {{ini_map['key']}}
154+
{% if config['ini']|length > 1 %}- {% else %} {% endif %}:Section: [{{ini_map['section']}}]
155+
{% if config['ini']|length > 1 %} {% else %} {% endif %}:Key: {{ini_map['key']}}
156156
{% if ini_map['version_added'] %}
157157
:Version Added: {{ini_map['version_added']}}
158158
{% endif %}
@@ -168,7 +168,7 @@ you can use the command line utility mentioned above (`ansible-config`) to brows
168168
{% if config.get('env', False) %}
169169
:Environment:
170170
{% for env_var_map in config['env']|sort(attribute='name') %}
171-
{% if config['env']|length > 1 %}- {% endif %}:Variable: :envvar:`{{env_var_map['name']}}`
171+
{% if config['env']|length > 1 %}- {% else %} {% endif %}:Variable: :envvar:`{{env_var_map['name']}}`
172172
{% if env_var_map['version_added'] %}
173173
:Version Added: {{env_var_map['version_added']}}
174174
{% endif %}
@@ -184,7 +184,7 @@ you can use the command line utility mentioned above (`ansible-config`) to brows
184184
{% if config.get('vars', False) %}
185185
:Variables:
186186
{% for a_var in config['vars']|sort(attribute='name') %}
187-
{% if config['vars']|length > 1 %}- {%endif%}:name: `{{a_var['name']}}`
187+
{% if config['vars']|length > 1 %}- {% else %} {%endif%}:name: `{{a_var['name']}}`
188188
{% if a_var['version_added'] %}
189189
:Version Added: {{a_var['version_added']}}
190190
{% endif %}

0 commit comments

Comments
 (0)