aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-05-14 20:32:21 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-05-14 20:32:21 +0200
commitcb245a3ecb0dbefc8ca5bd19e52ec3f69aa1bf56 (patch)
tree5e56e914e91ea3d1b8e3c1518b8a192c867fe40a /askama_derive/src
parenta19a0baff62cca41cb1bcdc07eee994c7481aba0 (diff)
downloadaskama-cb245a3ecb0dbefc8ca5bd19e52ec3f69aa1bf56.tar.gz
askama-cb245a3ecb0dbefc8ca5bd19e52ec3f69aa1bf56.tar.bz2
askama-cb245a3ecb0dbefc8ca5bd19e52ec3f69aa1bf56.zip
Fix copy/paste error in whitespace handling
Diffstat (limited to 'askama_derive/src')
-rw-r--r--askama_derive/src/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs
index d15fc1a..ef76462 100644
--- a/askama_derive/src/parser.rs
+++ b/askama_derive/src/parser.rs
@@ -555,7 +555,7 @@ named!(block_for<Node>, do_parse!(
nws2: opt!(tag_s!("-")) >>
(Node::Loop(WS(pws1.is_some(), nws1.is_some()),
var, iter, block,
- WS(pws2.is_some(), pws2.is_some())))
+ WS(pws2.is_some(), nws2.is_some())))
));
named!(block_extends<Node>, do_parse!(
@@ -578,7 +578,7 @@ named!(block_block<Node>, do_parse!(
nws2: opt!(tag_s!("-")) >>
(Node::BlockDef(WS(pws1.is_some(), nws1.is_some()),
name, contents,
- WS(pws2.is_some(), pws2.is_some())))
+ WS(pws2.is_some(), nws2.is_some())))
));
named!(block_include<Node>, do_parse!(