aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Ms.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-12-30 13:36:18 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-12-30 13:36:18 -0800
commit49286a25df24bd3bf6d5c20b47e819d83d6d8207 (patch)
tree955ff0899300cba0a5ce2f65403f5db8601827e4 /src/Text/Pandoc/Writers/Ms.hs
parentee03d86a5da55f0b79346a3e4d5b1fe4b150d3b5 (diff)
downloadpandoc-49286a25df24bd3bf6d5c20b47e819d83d6d8207.tar.gz
Ms writer: don't justify inside table cells.
Diffstat (limited to 'src/Text/Pandoc/Writers/Ms.hs')
-rw-r--r--src/Text/Pandoc/Writers/Ms.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Ms.hs b/src/Text/Pandoc/Writers/Ms.hs
index 96914d3c6..0fc333bc2 100644
--- a/src/Text/Pandoc/Writers/Ms.hs
+++ b/src/Text/Pandoc/Writers/Ms.hs
@@ -263,8 +263,10 @@ blockToMs opts (Table _ blkCapt specs thead tbody tfoot) =
return $ makeRow cols) rows
setFirstPara
return $ literal ".PP" $$ caption' $$
+ literal ".na" $$ -- we don't want justification in table cells
literal ".TS" $$ literal "delim(@@) tab(\t);" $$ coldescriptions $$
- colheadings' $$ vcat body $$ literal ".TE"
+ colheadings' $$ vcat body $$ literal ".TE" $$
+ literal ".ad"
blockToMs opts (BulletList items) = do
contents <- mapM (bulletListItemToMs opts) items