Small docs fix

This commit is contained in:
David Jennes
2022-07-31 23:03:40 +02:00
parent a3df900bd2
commit 95a24b950f

View File

@@ -113,12 +113,10 @@ To comment out part of your template, you can use the following syntax:
{# My comment is completely hidden #} {# My comment is completely hidden #}
.. _template-inheritance:
Whitespace Control Whitespace Control
------------------ ------------------
Stencil supports the same syntax as Jinja for whitespace control, see [their docs for more information](https://jinja.palletsprojects.com/en/3.1.x/templates/#whitespace-control). Stencil supports the same syntax as Jinja for whitespace control, see `their docs for more information <https://jinja.palletsprojects.com/en/3.1.x/templates/#whitespace-control>`_.
Essentially, Stencil will **not** trim whitespace by default. However you can: Essentially, Stencil will **not** trim whitespace by default. However you can:
@@ -126,6 +124,8 @@ Essentially, Stencil will **not** trim whitespace by default. However you can:
- You can disable this per-block using the `+` control character. For example `{{+ if … }}` to preserve whitespace before. - You can disable this per-block using the `+` control character. For example `{{+ if … }}` to preserve whitespace before.
- You can force trimming per-block by using the `-` control character. For example `{{ if … -}}` to trim whitespace after. - You can force trimming per-block by using the `-` control character. For example `{{ if … -}}` to trim whitespace after.
.. _template-inheritance:
Template inheritance Template inheritance
-------------------- --------------------