diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-25 13:48:42 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-25 13:49:50 +0100 |
commit | ed55cb87481ebfddeaf076a0c5e42dcaf87581bc (patch) | |
tree | 33500936bdac1979575f8e78e8065649e24328e4 | |
parent | 1f3fae4b119633a29e93ae5186441bb873d6466c (diff) | |
download | askama-ed55cb87481ebfddeaf076a0c5e42dcaf87581bc.tar.gz askama-ed55cb87481ebfddeaf076a0c5e42dcaf87581bc.tar.bz2 askama-ed55cb87481ebfddeaf076a0c5e42dcaf87581bc.zip |
Tweak generated code style for let blocks
-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 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) { |