From 60927e729894bb439a627202478fbbc7bfb0a55e Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Sat, 10 Dec 2022 08:19:26 +0100 Subject: [PATCH] fixup! parse block elements --- src/block.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/block.rs b/src/block.rs index 6593f2c..39d11b5 100644 --- a/src/block.rs +++ b/src/block.rs @@ -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..];