diff options
author | Jose Luis Duran <jlduran@users.noreply.github.com> | 2014-08-29 13:54:08 +0000 |
---|---|---|
committer | Jose Luis Duran <jlduran@users.noreply.github.com> | 2014-08-29 13:54:08 +0000 |
commit | 4c684561ee0665b014e887ae559b7020e4e9f2d3 (patch) | |
tree | 899c1059f79c782f2f8290f12a5d9a321e364009 /src/Text | |
parent | f1d330b7b5eba55562fdfc6059619cee695bd1e8 (diff) | |
download | pandoc-4c684561ee0665b014e887ae559b7020e4e9f2d3.tar.gz |
LaTeX writer: Add `\strut` to fix multiline tables
See: http://tex.stackexchange.com/questions/34971
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 6c17401d0..b2db7377d 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -556,7 +556,8 @@ tableCellToLaTeX header (width, align, blocks) = do AlignDefault -> "\\raggedright" return $ ("\\begin{minipage}" <> valign <> braces (text (printf "%.2f\\columnwidth" width)) <> - (halign <> cr <> cellContents <> cr) <> "\\end{minipage}") + (halign <> "\\strut" <> cr <> cellContents <> cr) <> + "\\strut\\end{minipage}") $$ case notes of [] -> empty ns -> (case length ns of |