From f3d81056d66147a42587607a3f8926c0baf06b7e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 23 Feb 2017 22:25:08 +0100 Subject: Removed `\strut` at beginning of table cells. This fixes a problem with alignment of lists in table cells (closes #3436). The `\strut` at the end seems to be enough to avoid the too-close spacing that motivated addition of the strut in #1573. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers/LaTeX.hs') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index ac2b5d758..07cd6bc8b 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -725,7 +725,7 @@ tableCellToLaTeX header (width, align, blocks) = do AlignDefault -> "\\raggedright" return $ ("\\begin{minipage}" <> valign <> braces (text (printf "%.2f\\columnwidth" width)) <> - (halign <> "\\strut" <> cr <> cellContents <> "\\strut" <> cr) <> + (halign <> cr <> cellContents <> "\\strut" <> cr) <> "\\end{minipage}") $$ notesToLaTeX notes -- cgit v1.2.3