aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-02-16 11:05:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-02-16 11:05:51 -0800
commitb8dadc608a565e3aa20194d90c89e004ac3cdb9a (patch)
tree21c2089d2932de368731ca6fdbd6195a525f0b1a /src/Text/Pandoc
parent09bc31a7ccc09ba99f48f32356b3d26328a64048 (diff)
downloadpandoc-b8dadc608a565e3aa20194d90c89e004ac3cdb9a.tar.gz
HTML reader: properly handle an empty cell in a simple table.
Closes #2718.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs1
1 files changed, 1 insertions, 0 deletions
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)