diff --git a/org_mode_samples/lesser_element/fixed_width_area/blank_line_in_middle.org b/org_mode_samples/lesser_element/fixed_width_area/blank_line_in_middle.org new file mode 100644 index 0000000..589a196 --- /dev/null +++ b/org_mode_samples/lesser_element/fixed_width_area/blank_line_in_middle.org @@ -0,0 +1,3 @@ +: foo +: +: bar diff --git a/src/parser/fixed_width_area.rs b/src/parser/fixed_width_area.rs index 9631ac8..10abff2 100644 --- a/src/parser/fixed_width_area.rs +++ b/src/parser/fixed_width_area.rs @@ -72,8 +72,8 @@ where fn fixed_width_area_line<'s>(input: OrgSource<'s>) -> Res, 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)?;