mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-27 13:00:57 +00:00
Simplify whitespace handling in expression code generation
This commit is contained in:
parent
460079e347
commit
349b3c2612
@ -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(")?;");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user