fixup! parse block elements

This commit is contained in:
Noah Hellman 2022-12-10 08:19:26 +01:00
parent 89390cf5f6
commit 60927e7298

View file

@ -109,9 +109,7 @@ impl<'s> Parser<'s> {
let blanklines = lines let blanklines = lines
.iter() .iter()
.take_while(|sp| sp.of(self.src).trim().is_empty()) .take_while(|sp| sp.of(self.src).trim().is_empty())
.map(|sp| { .map(|sp| self.tree.elem(Atom::Blankline, *sp))
self.tree.elem(Atom::Blankline, *sp);
})
.count(); .count();
let lines = &mut lines[blanklines..]; let lines = &mut lines[blanklines..];