From e3998d1ff76f8312d9ccaa08c4b32c55c3c6df31 Mon Sep 17 00:00:00 2001 From: xenofem Date: Fri, 19 Jun 2020 02:17:11 -0400 Subject: [PATCH] allow whitespace on empty lines --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 57ef599..16397ce 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -25,7 +25,7 @@ fn whitespace(input: &str) -> IResult<&str, ()> { } fn empty_line(input: &str) -> IResult<&str, ()> { - map(tuple((opt(comment), tag("\n"))), |_| ())(input) + map(tuple((whitespace, opt(comment), tag("\n"))), |_| ())(input) } pub fn take_until_any>(tags: Vec) -> impl Fn(Input) -> IResult