From e062a5ce383b7142242e641cb2105bad5cd7d078 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 21 Apr 2022 18:01:58 +0200 Subject: Rename Whitespace::Trim into Whitespace::Suppress --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/generator.rs') 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) -> 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, -- cgit