aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-11-13 18:43:46 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-11-13 18:44:56 +0300
commit40796972812fe7a29d04eb430bee704383736221 (patch)
treea2cfd3cb3a9891a768b6c651f57333f6f5c5ac77 /src/Text
parent4a950feb8e6ff0f557af5c686d860dc70ca01f42 (diff)
downloadpandoc-40796972812fe7a29d04eb430bee704383736221.tar.gz
Muse writer: output tables with one column as grid tables
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/Muse.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Muse.hs b/src/Text/Pandoc/Writers/Muse.hs
index 2001c56fd..1d7a3fd77 100644
--- a/src/Text/Pandoc/Writers/Muse.hs
+++ b/src/Text/Pandoc/Writers/Muse.hs
@@ -281,7 +281,7 @@ blockToMuse (Header level (ident,_,_) inlines) = do
-- https://www.gnu.org/software/emacs-muse/manual/muse.html#Horizontal-Rules-and-Anchors
blockToMuse HorizontalRule = return $ blankline $$ "----" $$ blankline
blockToMuse (Table caption aligns widths headers rows) =
- if all (== 0.0) widths
+ if all (== 0.0) widths && length widths > 1
then simpleTable caption headers rows
else do
opts <- asks envOptions