aboutsummaryrefslogtreecommitdiffstats
path: root/book
diff options
context:
space:
mode:
Diffstat (limited to 'book')
-rw-r--r--book/src/configuration.md4
1 files changed, 2 insertions, 2 deletions
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 `<div>` 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: