From 55b7afc674d36a26e2ce4eb5f72d22487807a614 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 29 Apr 2015 12:05:38 -0700 Subject: [PATCH] HTML reader: Allow multiple colgroups in table. Closes #2122. --- src/Text/Pandoc/Readers/HTML.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index 302fcda9f..5b3c907aa 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -380,7 +380,7 @@ pTable = try $ do skipMany pBlank caption <- option mempty $ pInTags "caption" inline <* skipMany pBlank -- TODO actually read these and take width information from them - widths' <- pColgroup <|> many pCol + widths' <- (mconcat <$> many1 pColgroup) <|> many pCol let pTh = option [] $ pInTags "tr" (pCell "th") pTr = try $ skipMany pBlank >> pInTags "tr" (pCell "td" <|> pCell "th") pTBody = do pOptInTag "tbody" $ many1 pTr