From 6c639d342069152f1e1bfd7d759b233539f147cc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 1 Aug 2011 11:55:55 -0700 Subject: HTML reader: Fixed bug parsing tables w both thead and tbody. See bug #274, which was not completely fixed by the last patch. --- src/Text/Pandoc/Readers/HTML.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index 7c882f680..2ad2c8e0f 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -215,6 +215,7 @@ pSimpleTable = try $ do TagOpen _ _ <- pSatisfy (~== TagOpen "table" []) skipMany pBlank head' <- option [] $ pOptInTag "thead" $ pInTags "tr" (pCell "th") + skipMany pBlank rows <- pOptInTag "tbody" $ many1 $ try $ skipMany pBlank >> pInTags "tr" (pCell "td") skipMany pBlank -- cgit v1.2.3