aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-01 18:04:34 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-01 18:04:34 +0200
commit6c7da56ddddac1b549445befff6023c1b481db85 (patch)
treea4e8c0834e305d6187a263748cc021230021172d
parentcb6d45008b63e8c9bdcdff10c3f948c094096feb (diff)
downloadaskama-6c7da56ddddac1b549445befff6023c1b481db85.tar.gz
askama-6c7da56ddddac1b549445befff6023c1b481db85.tar.bz2
askama-6c7da56ddddac1b549445befff6023c1b481db85.zip
Add a clarifying comment about whitespace in write_call()
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
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);