diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-10-01 18:04:34 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-10-01 18:04:34 +0200 |
commit | 6c7da56ddddac1b549445befff6023c1b481db85 (patch) | |
tree | a4e8c0834e305d6187a263748cc021230021172d /askama_shared | |
parent | cb6d45008b63e8c9bdcdff10c3f948c094096feb (diff) | |
download | askama-6c7da56ddddac1b549445befff6023c1b481db85.tar.gz askama-6c7da56ddddac1b549445befff6023c1b481db85.tar.bz2 askama-6c7da56ddddac1b549445befff6023c1b481db85.zip |
Add a clarifying comment about whitespace in write_call()
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |