From ce0a4f8c4742a26950237196163f7ca213f62551 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 25 Nov 2019 07:31:28 -0800 Subject: RST writers: Use grid tables for 1-column tables. With simple tables, we have a clash with heading syntax. Closes #5936. --- src/Text/Pandoc/Writers/RST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index dc732b0e6..d8c559214 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -294,7 +294,7 @@ blockToRST (Table caption aligns widths headers rows) = do modify $ \st -> st{ stOptions = oldOpts } return result opts <- gets stOptions - let isSimple = all (== 0) widths + let isSimple = all (== 0) widths && length widths > 1 tbl <- if isSimple then do tbl' <- simpleTable opts blocksToDoc headers rows -- cgit v1.2.3