From 6c7da56ddddac1b549445befff6023c1b481db85 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 1 Oct 2017 18:04:34 +0200 Subject: Add a clarifying comment about whitespace in write_call() --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 0d05c0e..ab861dc 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -449,7 +449,7 @@ impl<'a> Generator<'a> { fn write_call(&mut self, state: &'a State, ws: &WS, name: &str, args: &[Expr]) { let def = state.macros.get(name).expect(&format!("macro '{}' not found", name)); - self.flush_ws(ws); + self.flush_ws(ws); // Cannot handle_ws() here: whitespace from macro definition comes first self.locals.push(); self.writeln("{"); self.prepare_ws(&def.ws1); -- cgit