aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askama/src/generator.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/askama/src/generator.rs b/askama/src/generator.rs
index d3e3746..5fe127e 100644
--- a/askama/src/generator.rs
+++ b/askama/src/generator.rs
@@ -118,9 +118,7 @@ impl Generator {
}
fn write_lit(&mut self, s: &str) {
- self.write("writer.write_str(");
- self.write(&format!("{:#?}", s));
- self.writeln(").unwrap();");
+ self.write(&format!("writer.write_str({:#?}).unwrap();", s));
}
fn write_expr(&mut self, s: &Expr) {