HTML reader: Fixed bug parsing tables w both thead and tbody.
See bug #274, which was not completely fixed by the last patch.
commit6c639d342069152f1e1bfd7d759b233539f147cc
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 1 Aug 2011, 11:55 (15 years ago)
parentbf26ae1
src/Text/Pandoc/Readers/HTML.hs+1
@@ -215,6 +215,7 @@ pSimpleTable = try $ do
215215 TagOpen _ _ <- pSatisfy (~== TagOpen "table" [])
216216 skipMany pBlank
217217 head' <- option [] $ pOptInTag "thead" $ pInTags "tr" (pCell "th")
218+ skipMany pBlank
218219 rows <- pOptInTag "tbody"
219220 $ many1 $ try $ skipMany pBlank >> pInTags "tr" (pCell "td")
220221 skipMany pBlank