diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-03-03 16:44:54 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-03-03 16:44:54 +0100 |
commit | aa98f61fa78b2a81e47419feae188308d30bacf6 (patch) | |
tree | b9782fe6b3620d94e3edf8a5b9a3d458f5699e31 /testing/tests/operators.rs | |
parent | 24c5693de8acd454b3e6e3b95107ba7e7823d256 (diff) | |
download | askama-aa98f61fa78b2a81e47419feae188308d30bacf6.tar.gz askama-aa98f61fa78b2a81e47419feae188308d30bacf6.tar.bz2 askama-aa98f61fa78b2a81e47419feae188308d30bacf6.zip |
Discard trailing newlines from templates by default
This matches Jinja's behavior, and seems sensible.
Diffstat (limited to 'testing/tests/operators.rs')
-rw-r--r-- | testing/tests/operators.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/tests/operators.rs b/testing/tests/operators.rs index 73745f0..70d26b1 100644 --- a/testing/tests/operators.rs +++ b/testing/tests/operators.rs @@ -15,7 +15,7 @@ struct CompareTemplate { #[test] fn test_compare() { let t = CompareTemplate { a: 1, b: 1, c: 2 }; - assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf\n"); + assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf"); } |