diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-24 15:55:00 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-24 15:55:00 +0100 |
commit | a4250c8c9cc96e174f19f5b937ac43eb504a912b (patch) | |
tree | 3c0950ccca45304ba3d6d01d1f5f5eb43093c097 | |
parent | 54ae2ff7c0f5602e25f38d921562015a141f7306 (diff) | |
download | askama-a4250c8c9cc96e174f19f5b937ac43eb504a912b.tar.gz askama-a4250c8c9cc96e174f19f5b937ac43eb504a912b.tar.bz2 askama-a4250c8c9cc96e174f19f5b937ac43eb504a912b.zip |
Improve formatting for macro arguments
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |