aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askama_derive/src/generator.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index f309493..f40b094 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -658,10 +658,8 @@ impl<'a> Generator<'a> {
buf.indent();
buf.writeln("writer,");
buf.writeln(&format!("{:#?},", &buf_format.buf));
- buf.start = false;
- buf.write(&buf_expr.buf);
+ buf.write(buf_expr.buf.trim());
buf.dedent();
- buf.start = true;
buf.writeln(")?;");
}
}