From 3b27d723fb7958c7a7b745009cd68b92f52c8e65 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Wed, 28 Feb 2018 18:16:18 +0100 Subject: [PATCH] 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. --- docs/templates/plugin.rst.j2 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index 260fc9706f..04a39e7c32 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -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 %}