From 358f7cd07dc42ba4189d2661461ff0b43a27c304 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 21 Apr 2022 15:41:12 +0200 Subject: Update `whitespace` documentation --- book/src/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'book/src') diff --git a/book/src/configuration.md b/book/src/configuration.md index 05c18a0..acc9751 100644 --- a/book/src/configuration.md +++ b/book/src/configuration.md @@ -12,7 +12,7 @@ This example file demonstrates the default configuration: # Directories to search for templates, relative to the crate root. dirs = ["templates"] # Unless you add a `-` in a block, whitespace won't be trimmed. -suppress_whitespace = false +whitespace = "preserve" ``` In the default configuration, you can use the `-` operator to indicate that @@ -28,7 +28,7 @@ Hello ``` In the template above, only the whitespace between `
` and `{%-` will be -suppressed. If you enable `suppress_whitespace`, whitespace characters before +suppressed. If you set `whitespace` to `"suppress"`, whitespace characters before and after each block will be suppressed by default. To preserve the whitespace characters, you can use the `+` operator: -- cgit