aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-25 13:48:42 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-25 13:49:50 +0100
commited55cb87481ebfddeaf076a0c5e42dcaf87581bc (patch)
tree33500936bdac1979575f8e78e8065649e24328e4 /askama_derive/src
parent1f3fae4b119633a29e93ae5186441bb873d6466c (diff)
downloadaskama-ed55cb87481ebfddeaf076a0c5e42dcaf87581bc.tar.gz
askama-ed55cb87481ebfddeaf076a0c5e42dcaf87581bc.tar.bz2
askama-ed55cb87481ebfddeaf076a0c5e42dcaf87581bc.zip
Tweak generated code style for let blocks
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs2
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) {