inline: do not emit empty events

This commit is contained in:
Noah Hellman 2023-02-01 18:14:37 +01:00
parent a5d88b64ae
commit fb6a44283d

View file

@ -769,6 +769,7 @@ impl<I: Iterator<Item = char> + Clone> Iterator for Parser<I> {
self.events.pop_front().and_then(|e| {
match e.kind {
EventKind::Str if e.span.is_empty() => self.next(),
EventKind::Str | EventKind::Whitespace => {
// merge str events
let mut span = e.span;