From b8dadc608a565e3aa20194d90c89e004ac3cdb9a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 16 Feb 2016 11:05:51 -0800 Subject: HTML reader: properly handle an empty cell in a simple table. Closes #2718. --- src/Text/Pandoc/Readers/HTML.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index 773ef6597..23add159e 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -445,6 +445,7 @@ pTable = try $ do -- fail on empty table guard $ not $ null head' && null rows let isSinglePlain x = case B.toList x of + [] -> True [Plain _] -> True _ -> False let isSimple = all isSinglePlain $ concat (head':rows) -- cgit v1.2.3