Consume the end of the cell.
This commit is contained in:
parent
d2fe100435
commit
f0d2754955
@ -120,6 +120,8 @@ pub fn org_mode_table_cell<'r, 's>(
|
|||||||
|(children, exit_contents)| !children.is_empty() || exit_contents.ends_with("|"),
|
|(children, exit_contents)| !children.is_empty() || exit_contents.ends_with("|"),
|
||||||
)(input)?;
|
)(input)?;
|
||||||
|
|
||||||
|
let (remaining, _tail) = org_mode_table_cell_end(&parser_context, remaining)?;
|
||||||
|
|
||||||
let source = get_consumed(input, remaining);
|
let source = get_consumed(input, remaining);
|
||||||
|
|
||||||
Ok((remaining, TableCell { source, children }))
|
Ok((remaining, TableCell { source, children }))
|
||||||
@ -130,5 +132,5 @@ fn org_mode_table_cell_end<'r, 's>(
|
|||||||
context: Context<'r, 's>,
|
context: Context<'r, 's>,
|
||||||
input: &'s str,
|
input: &'s str,
|
||||||
) -> Res<&'s str, &'s str> {
|
) -> Res<&'s str, &'s str> {
|
||||||
recognize(tuple((space0, alt((tag("|"), line_ending)))))(input)
|
recognize(tuple((space0, alt((tag("|"), peek(line_ending))))))(input)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user