aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-27 09:09:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-27 09:09:40 -0700
commita3b351c3a627b9eea080475d5e36fe9a50911831 (patch)
treead0756497158cc57a5f582717ed8e4b303761c3a /src/Text/Pandoc
parent1a7b9382db3c948ccae0b8b081a0e960a6daf14f (diff)
downloadpandoc-a3b351c3a627b9eea080475d5e36fe9a50911831.tar.gz
Man reader: don't throw an error if a table cell can't be parsed...
as inlines. Instead, just have the parser fail. See #5026.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Man.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs
index 67639bee4..665679c4d 100644
--- a/src/Text/Pandoc/Readers/Man.hs
+++ b/src/Text/Pandoc/Readers/Man.hs
@@ -142,7 +142,7 @@ parseTable = do
then return $ Right mempty
else lift $ readWithMTokens tcell st ts'
case res of
- Left e -> throwError e
+ Left _ -> fail "Could not parse table cell"
Right x -> return x
isHrule :: TableRow -> Bool