aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-25 14:41:28 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-25 14:41:28 -0800
commitb50ac3a95b17e20db0289b4e08b23cefe2282bc9 (patch)
tree21bb12473d769cce62e8241b6308b865a858e6b2 /src/Text/Pandoc/Writers
parent815976d5378398933322006e78d140bb8de6eb80 (diff)
downloadpandoc-b50ac3a95b17e20db0289b4e08b23cefe2282bc9.tar.gz
LaTeX tables: Fix calculation of column spacing.
See #6883.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 345ebe387..e1c6d186d 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -913,7 +913,7 @@ tableCellToLaTeX header numcols (width, align, blocks) = do
return $ "\\begin{minipage}" <> valign <>
braces (text (printf
"(\\columnwidth - %d\\tabcolsep) * \\real{%.2f}"
- (numcols - 1) width)) <>
+ (2 * (numcols - 1)) width)) <>
halign <> cr <> cellContents <> cr <>
"\\end{minipage}"
-- (\columnwidth - 8\tabcolsep) * \real{0.15}