aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-01-02 07:56:07 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-01-02 07:56:07 -0800
commit9a18cf4b591364e7f0dc9b976628e91f8b31a6cf (patch)
treebc532f38ff675b978169e185298ff0935a1a4572 /src/Text/Pandoc
parent17e3efc785fa8b0680ec6d4ebaac1ea6bdb57e1a (diff)
downloadpandoc-9a18cf4b591364e7f0dc9b976628e91f8b31a6cf.tar.gz
LaTeX writer: revert table line height increase in 2.11.3.
In 2.11.3 we started adding `\addlinespace`, which produced less dense tables. This wasn't an intentional change; I misunderstood a comment in the discussion leading up to the change. This commit restores the earlier default table appearance. Note that if you want a less dense table, you can use something like `\def\arraystretch{1.5}` in your header. Closes #6996.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX/Table.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX/Table.hs b/src/Text/Pandoc/Writers/LaTeX/Table.hs
index 9dd66c8a3..8411d9f80 100644
--- a/src/Text/Pandoc/Writers/LaTeX/Table.hs
+++ b/src/Text/Pandoc/Writers/LaTeX/Table.hs
@@ -169,7 +169,7 @@ rowToLaTeX :: PandocMonad m
-> LW m (Doc Text)
rowToLaTeX blocksWriter celltype row = do
cellsDocs <- mapM (cellToLaTeX blocksWriter celltype) (fillRow row)
- return $ hsep (intersperse "&" cellsDocs) <> " \\\\ \\addlinespace"
+ return $ hsep (intersperse "&" cellsDocs) <> " \\\\"
-- | Pads row with empty cells to adjust for rowspans above this row.
fillRow :: [Ann.Cell] -> [Ann.Cell]