From 95a24b950f69cbacb6bd3a53961a87ef24ed48cb Mon Sep 17 00:00:00 2001 From: David Jennes Date: Sun, 31 Jul 2022 23:03:40 +0200 Subject: [PATCH] Small docs fix --- docs/templates.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/templates.rst b/docs/templates.rst index c57a3a5..ec1ca58 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -113,12 +113,10 @@ To comment out part of your template, you can use the following syntax: {# My comment is completely hidden #} -.. _template-inheritance: - 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 `_. 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 force trimming per-block by using the `-` control character. For example `{{ if … -}}` to trim whitespace after. +.. _template-inheritance: + Template inheritance --------------------