diff options
author | René Kijewski <rene.kijewski@fu-berlin.de> | 2023-08-02 10:20:27 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-08-02 11:09:05 +0200 |
commit | 50745e41c28eb9248045164e3615602225788019 (patch) | |
tree | 28eaf26281ca8dd80b697930b85b123ae58d2572 | |
parent | d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8 (diff) | |
download | askama-50745e41c28eb9248045164e3615602225788019.tar.gz askama-50745e41c28eb9248045164e3615602225788019.tar.bz2 askama-50745e41c28eb9248045164e3615602225788019.zip |
parser: don't truncates whitespaces after arrays
-rw-r--r-- | askama_parser/src/expr.rs | 2 |
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) } |