From 50745e41c28eb9248045164e3615602225788019 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 2 Aug 2023 10:20:27 +0200 Subject: parser: don't truncates whitespaces after arrays --- askama_parser/src/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_parser/src/expr.rs') 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) } -- cgit