Move consuming the trailing whitespace up to the element matchers.

This commit is contained in:
Tom Alexander
2023-04-21 23:54:54 -04:00
parent 7df899e3a7
commit e97cf6630f
13 changed files with 17 additions and 48 deletions

View File

@@ -51,8 +51,6 @@ pub fn org_mode_table<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&
many_till(org_mode_table_row_matcher, exit_matcher)(input)?;
// TODO: Consume trailing formulas
let (remaining, _trailing_ws) =
maybe_consume_trailing_whitespace_if_not_exiting(context, remaining)?;
let source = get_consumed(input, remaining);
Ok((remaining, Table { source, children }))