aboutsummaryrefslogtreecommitdiff
path: root/docs/templates.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/templates.rst')
-rw-r--r--docs/templates.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/templates.rst b/docs/templates.rst
index a346ef23..3101d0ed 100644
--- a/docs/templates.rst
+++ b/docs/templates.rst
@@ -230,6 +230,15 @@ plus sign (``+``) at the start of a block::
{%+ if something %}yay{% endif %}
</div>
+Similarly, you can manually disable the ``trim_blocks`` behavior by
+putting a plus sign (``+``) at the end of a block::
+
+ <div>
+ {% if something +%}
+ yay
+ {% endif %}
+ </div>
+
You can also strip whitespace in templates by hand. If you add a minus
sign (``-``) to the start or end of a block (e.g. a :ref:`for-loop` tag), a
comment, or a variable expression, the whitespaces before or after