Move consuming the trailing whitespace up to the element matchers.
This commit is contained in:
@@ -31,9 +31,6 @@ pub fn fixed_width_area<'r, 's>(
|
||||
let (remaining, _remaining_lines) =
|
||||
many0(preceded(not(exit_matcher), fixed_width_area_line_matcher))(remaining)?;
|
||||
|
||||
let (remaining, _trailing_ws) =
|
||||
maybe_consume_trailing_whitespace_if_not_exiting(context, remaining)?;
|
||||
|
||||
let source = get_consumed(input, remaining);
|
||||
Ok((remaining, FixedWidthArea { source }))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user