From 50fe5dc090531898eb58e48ea47551c5e05fe99e Mon Sep 17 00:00:00 2001 From: Will Thames Date: Thu, 21 Jun 2018 21:51:58 +1000 Subject: [PATCH] Trim parameter documentation when generating docs (#38470) While the HTML produced is perfectly valid, without the `trim` filter, a lot of warnings are emitted (700 lines of warnings out of 2812 are eliminated by this change) --- docs/templates/plugin.rst.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index db963f561f..dcd43171e7 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -345,10 +345,10 @@ Common return values are documented :ref:`here `, the foll @{ value.returned | html_ify }@ {% if value.description is string %} -
@{ value.description | html_ify |indent(4)}@
+
@{ value.description | html_ify |indent(4) | trim}@
{% else %} {% for desc in value.description %} -
@{ desc | html_ify |indent(4)}@
+
@{ desc | html_ify |indent(4) | trim}@
{% endfor %} {% endif %}