Consume the end of the cell.

This commit is contained in:
Tom Alexander 2023-04-21 15:36:45 -04:00
parent d2fe100435
commit f0d2754955
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -120,6 +120,8 @@ pub fn org_mode_table_cell<'r, 's>(
|(children, exit_contents)| !children.is_empty() || exit_contents.ends_with("|"),
)(input)?;
let (remaining, _tail) = org_mode_table_cell_end(&parser_context, remaining)?;
let source = get_consumed(input, remaining);
Ok((remaining, TableCell { source, children }))
@ -130,5 +132,5 @@ fn org_mode_table_cell_end<'r, 's>(
context: Context<'r, 's>,
input: &'s str,
) -> Res<&'s str, &'s str> {
recognize(tuple((space0, alt((tag("|"), line_ending)))))(input)
recognize(tuple((space0, alt((tag("|"), peek(line_ending))))))(input)
}