Skip to content

Commit e60a784

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

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 %}
@@ -172,7 +172,7 @@ you can use the command line utility mentioned above (`ansible-config`) to brows
172172
{% if config.get('env', False) %}
173173
:Environment:
174174
{% for env_var_map in config['env']|sort(attribute='name') %}
175-
{% if config['env']|length > 1 %}- {% endif %}:Variable: :envvar:`{{env_var_map['name']}}`
175+
{% if config['env']|length > 1 %}- {% else %} {% endif %}:Variable: :envvar:`{{env_var_map['name']}}`
176176
{% if env_var_map['version_added'] %}
177177
:Version Added: {{env_var_map['version_added']}}
178178
{% endif %}
@@ -192,7 +192,7 @@ you can use the command line utility mentioned above (`ansible-config`) to brows
192192
{% if config.get('vars', False) %}
193193
:Variables:
194194
{% for a_var in config['vars']|sort(attribute='name') %}
195-
{% if config['vars']|length > 1 %}- {%endif%}:name: `{{a_var['name']}}`
195+
{% if config['vars']|length > 1 %}- {% else %} {%endif%}:name: `{{a_var['name']}}`
196196
{% if a_var['version_added'] %}
197197
:Version Added: {{a_var['version_added']}}
198198
{% endif %}

0 commit comments

Comments
 (0)