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
.iter()
.take_while(|sp| sp.of(self.src).trim().is_empty())
.map(|sp| {
self.tree.elem(Atom::Blankline, *sp);
})
.map(|sp| self.tree.elem(Atom::Blankline, *sp))
.count();
let lines = &mut lines[blanklines..];