diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-04-29 12:05:38 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-04-29 12:05:38 -0700 |
commit | 55b7afc674d36a26e2ce4eb5f72d22487807a614 (patch) | |
tree | 3ffc3e7813748d67c7f3c0bfb3c8d3985e9cac1d /src/Text/Pandoc/Readers | |
parent | bc95b615b1906b7c8e3c2b3ad439c01e9f4f5eab (diff) | |
download | pandoc-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.hs | 2 |
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 |