aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src/expr.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <rene.kijewski@fu-berlin.de>2023-08-02 10:20:27 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-08-02 11:09:05 +0200
commit50745e41c28eb9248045164e3615602225788019 (patch)
tree28eaf26281ca8dd80b697930b85b123ae58d2572 /askama_parser/src/expr.rs
parentd09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8 (diff)
downloadaskama-50745e41c28eb9248045164e3615602225788019.tar.gz
askama-50745e41c28eb9248045164e3615602225788019.tar.bz2
askama-50745e41c28eb9248045164e3615602225788019.zip
parser: don't truncates whitespaces after arrays
Diffstat (limited to 'askama_parser/src/expr.rs')
-rw-r--r--askama_parser/src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_parser/src/expr.rs b/askama_parser/src/expr.rs
index 9610c05..8331e01 100644
--- a/askama_parser/src/expr.rs
+++ b/askama_parser/src/expr.rs
@@ -321,7 +321,7 @@ impl<'a> Suffix<'a> {
fn index(i: &'a str) -> IResult<&'a str, Self> {
map(
- preceded(ws(char('[')), cut(terminated(Expr::parse, ws(char(']'))))),
+ preceded(ws(char('[')), cut(terminated(ws(Expr::parse), char(']')))),
Self::Index,
)(i)
}