aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-04-29 12:05:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-04-29 12:05:38 -0700
commit55b7afc674d36a26e2ce4eb5f72d22487807a614 (patch)
tree3ffc3e7813748d67c7f3c0bfb3c8d3985e9cac1d /src/Text/Pandoc/Readers
parentbc95b615b1906b7c8e3c2b3ad439c01e9f4f5eab (diff)
downloadpandoc-55b7afc674d36a26e2ce4eb5f72d22487807a614.tar.gz
HTML reader: Allow multiple colgroups in table.
Closes #2122.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
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