HTML reader: Fixed bug parsing tables w both thead and tbody.
See bug #274, which was not completely fixed by the last patch.
This commit is contained in:
parent
bf26ae1dbd
commit
6c639d3420
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue