HTML reader: properly handle an empty cell in a simple table.
Closes #2718.
commitb8dadc608a565e3aa20194d90c89e004ac3cdb9a
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 16 Feb 2016, 11:05 (11 years ago)
parent09bc31a
src/Text/Pandoc/Readers/HTML.hs+1
@@ -445,6 +445,7 @@ pTable = try $ do
445445 -- fail on empty table
446446 guard $ not $ null head' && null rows
447447 let isSinglePlain x = case B.toList x of
448+ [] -> True
448449 [Plain _] -> True
449450 _ -> False
450451 let isSimple = all isSinglePlain $ concat (head':rows)