Fix handling fixed width areas with empty lines in the middle.
This commit is contained in:
parent
99b74095e6
commit
e846c85188
@ -0,0 +1,3 @@
|
||||
: foo
|
||||
:
|
||||
: bar
|
@ -72,8 +72,8 @@ where
|
||||
fn fixed_width_area_line<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
start_of_line(input)?;
|
||||
let (remaining, _) = tuple((space0, tag(":")))(input)?;
|
||||
if let Ok((remain, _line_break)) = org_line_ending(remaining) {
|
||||
return Ok((remain, remaining.take(0)));
|
||||
if let Ok((_remain, _line_break)) = org_line_ending(remaining) {
|
||||
return Ok((remaining, remaining.take(0)));
|
||||
}
|
||||
let (remaining, _) = tag(" ")(remaining)?;
|
||||
let (remaining, value) = recognize(many_till(anychar, peek(org_line_ending)))(remaining)?;
|
||||
|
Loading…
Reference in New Issue
Block a user