aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama/src/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama/src/parser.rs b/askama/src/parser.rs
index 38d84d4..48bcf15 100644
--- a/askama/src/parser.rs
+++ b/askama/src/parser.rs
@@ -63,9 +63,9 @@ named!(block_if<Node>, do_parse!(
tag_s!("{%") >>
ws!(tag_s!("if")) >>
cond: ws!(expr_filtered) >>
- ws!(tag_s!("%}")) >>
+ tag_s!("%}") >>
block: parse_template >>
- ws!(tag_s!("{%")) >>
+ tag_s!("{%") >>
ws!(tag_s!("endif")) >>
tag_s!("%}") >>
(Node::Cond(cond, block))));