From a4250c8c9cc96e174f19f5b937ac43eb504a912b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 24 Jul 2018 15:55:00 +0100 Subject: Improve formatting for macro arguments --- askama_derive/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/generator.rs') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index b805ec8..02993cc 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -512,7 +512,7 @@ impl<'a> Generator<'a> { args.get(i) .unwrap_or_else(|| panic!("macro '{}' takes more than {} arguments", name, i)), ); - self.buf.write(&format!("let {} = &{};", arg, expr_code)); + self.buf.writeln(&format!("let {} = &{};", arg, expr_code)); self.locals.insert(arg); } self.handle(ctx, &def.nodes, AstLevel::Nested); -- cgit