diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-25 07:31:28 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-25 07:31:28 -0800 |
commit | ce0a4f8c4742a26950237196163f7ca213f62551 (patch) | |
tree | 700472ebe99e5a4db8c9c6bd7e620fcc8a235a1f /src/Text/Pandoc | |
parent | 659ee981764b85fb46845c086e3b10f1fc57a712 (diff) | |
download | pandoc-ce0a4f8c4742a26950237196163f7ca213f62551.tar.gz |
RST writers: Use grid tables for 1-column tables.
With simple tables, we have a clash with heading syntax.
Closes #5936.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |