diff options
-rw-r--r-- | askama_shared/src/lib.rs | 9 |
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); } } |