From ed55cb87481ebfddeaf076a0c5e42dcaf87581bc Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 25 Jul 2018 13:48:42 +0100 Subject: Tweak generated code style for let blocks --- askama_derive/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index bc24c06..ad002d1 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -565,7 +565,7 @@ impl<'a> Generator<'a> { self.buf.write(name); } } - self.buf.write(&format!(" = {};", &buf.buf)); + self.buf.writeln(&format!(" = {};", &buf.buf)); } fn write_block(&mut self, ws1: WS, name: &str, ws2: WS) { -- cgit