diff options
Diffstat (limited to 'askama_shared/src/parser.rs')
-rw-r--r-- | askama_shared/src/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs index 10c4ce8..ec4db11 100644 --- a/askama_shared/src/parser.rs +++ b/askama_shared/src/parser.rs @@ -113,11 +113,11 @@ where E: ParseError<I>, { move |i: I| { - let i = alt::<_, _, (), _>((tag(b" "), tag(b"\t")))(i.clone()) + let i = many0(alt::<_, _, (), _>((tag(b" "), tag(b"\t"))))(i.clone()) .map(|(i, _)| i) .unwrap_or(i); let (i, res) = inner(i)?; - let i = alt::<_, _, (), _>((tag(b" "), tag(b"\t")))(i.clone()) + let i = many0(alt::<_, _, (), _>((tag(b" "), tag(b"\t"))))(i.clone()) .map(|(i, _)| i) .unwrap_or(i); Ok((i, res)) |