Make the dust template parser all_consuming.
This commit is contained in:
@@ -698,7 +698,7 @@ fn body(i: &str) -> IResult<&str, Body> {
|
||||
|
||||
pub fn template(i: &str) -> IResult<&str, Template> {
|
||||
// DustJS ignores all preceding whitespace (tabs, newlines, spaces) but only ignores trailing newlines
|
||||
let (remaining, contents) = delimited(multispace0, body, eof_whitespace)(i)?;
|
||||
let (remaining, contents) = all_consuming(delimited(multispace0, body, eof_whitespace))(i)?;
|
||||
Ok((remaining, Template { contents: contents }))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user