From c795edfd8de5b77f27ad6c8a25568213dcc09bb6 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 8 Mar 2023 17:54:44 +0100 Subject: Add documentation for + sign in whitespace control --- book/src/template_syntax.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'book/src') diff --git a/book/src/template_syntax.md b/book/src/template_syntax.md index d270800..5e69bc9 100644 --- a/book/src/template_syntax.md +++ b/book/src/template_syntax.md @@ -87,6 +87,18 @@ This discards all whitespace inside the if/else block. If a literal includes only whitespace, whitespace suppression on either side will completely suppress that literal content. +If the whitespace default control is set to "suppress" and you want +to keep whitespace characters on one side of a block or of an +expression, you need to use `+`. Example: + +```text +text +``` + +In the above example, it allows to keep one whitespace character +between the `href` and the `class` attributes. + ## Template inheritance Template inheritance allows you to build a base template with common -- cgit