aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2022-04-21 16:28:12 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-04-26 10:15:34 +0200
commitf6423a2be4cb62edd7189842c59c6ec903a4d900 (patch)
tree6ebafa48e7123eac928a033d11bd82fdc077a94e /askama_shared
parente062a5ce383b7142242e641cb2105bad5cd7d078 (diff)
downloadaskama-f6423a2be4cb62edd7189842c59c6ec903a4d900.tar.gz
askama-f6423a2be4cb62edd7189842c59c6ec903a4d900.tar.bz2
askama-f6423a2be4cb62edd7189842c59c6ec903a4d900.zip
Add test for new `whitespace` parameter value: "minimize"
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index 3e87242..b6b478b 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -705,5 +705,14 @@ mod tests {
)
.unwrap();
assert_eq!(config.whitespace, WhitespaceHandling::Preserve);
+
+ let config = Config::new(
+ r#"
+ [general]
+ whitespace = "minimize"
+ "#,
+ )
+ .unwrap();
+ assert_eq!(config.whitespace, WhitespaceHandling::Minimize);
}
}