aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2022-04-21 18:01:58 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-04-26 10:15:34 +0200
commite062a5ce383b7142242e641cb2105bad5cd7d078 (patch)
tree23811531009c531708ad84b608c869799156db92 /askama_shared/src/generator.rs
parent409e913f34253bfae9d841e150f8013bc15844dc (diff)
downloadaskama-e062a5ce383b7142242e641cb2105bad5cd7d078.tar.gz
askama-e062a5ce383b7142242e641cb2105bad5cd7d078.tar.bz2
askama-e062a5ce383b7142242e641cb2105bad5cd7d078.zip
Rename Whitespace::Trim into Whitespace::Suppress
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index 92f39c0..9174a77 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -1830,7 +1830,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
fn should_trim_ws(&self, ws: Option<Whitespace>) -> WhitespaceHandling {
match ws {
- Some(Whitespace::Trim) => WhitespaceHandling::Suppress,
+ Some(Whitespace::Suppress) => WhitespaceHandling::Suppress,
Some(Whitespace::Preserve) => WhitespaceHandling::Preserve,
Some(Whitespace::Minimize) => WhitespaceHandling::Minimize,
None => self.whitespace,