Fix requiring no space between comment and property drawer for zeroth section.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use nom::branch::alt;
|
||||
use nom::bytes::complete::tag;
|
||||
use nom::bytes::complete::tag_no_case;
|
||||
use nom::bytes::complete::take_while;
|
||||
use nom::character::complete::line_ending;
|
||||
use nom::character::complete::space0;
|
||||
@@ -92,7 +93,7 @@ fn drawer_end<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str,
|
||||
start_of_line(context, input)?;
|
||||
recognize(tuple((
|
||||
space0,
|
||||
tag(":end:"),
|
||||
tag_no_case(":end:"),
|
||||
space0,
|
||||
alt((line_ending, eof)),
|
||||
)))(input)
|
||||
|
||||
Reference in New Issue
Block a user