inline: do not emit empty events
This commit is contained in:
parent
a5d88b64ae
commit
fb6a44283d
1 changed files with 1 additions and 0 deletions
|
@ -769,6 +769,7 @@ impl<I: Iterator<Item = char> + Clone> Iterator for Parser<I> {
|
||||||
|
|
||||||
self.events.pop_front().and_then(|e| {
|
self.events.pop_front().and_then(|e| {
|
||||||
match e.kind {
|
match e.kind {
|
||||||
|
EventKind::Str if e.span.is_empty() => self.next(),
|
||||||
EventKind::Str | EventKind::Whitespace => {
|
EventKind::Str | EventKind::Whitespace => {
|
||||||
// merge str events
|
// merge str events
|
||||||
let mut span = e.span;
|
let mut span = e.span;
|
||||||
|
|
Loading…
Reference in a new issue