From aa98f61fa78b2a81e47419feae188308d30bacf6 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 3 Mar 2017 16:44:54 +0100 Subject: Discard trailing newlines from templates by default This matches Jinja's behavior, and seems sensible. --- testing/tests/operators.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/tests/operators.rs') 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"); } -- cgit