diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-15 20:38:19 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-15 20:40:48 -0700 |
commit | fc4ae15337ec461f2dbc0eed4701598e012a2151 (patch) | |
tree | 66ce302e3e002f4de2faa0185ce89a16af9498eb /src/Text/Pandoc | |
parent | 0851f8d5923e88523b9be3ca300d96029b8b144d (diff) | |
download | pandoc-fc4ae15337ec461f2dbc0eed4701598e012a2151.tar.gz |
LaTeX writer: Don't use \endhead with longtable.
It causes the heading to be a different size form the body,
sometimes.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 902f2f47e..12ffecd98 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -381,7 +381,7 @@ blockToLaTeX (Table caption aligns widths heads rows) = do modify $ \s -> s{ stInTable = True, stTableNotes = [] } headers <- if all null heads then return empty - else ($$ "\\hline\\endhead\\noalign{\\medskip}") `fmap` + else ($$ "\\hline\\noalign{\\medskip}") `fmap` (tableRowToLaTeX True aligns widths) heads captionText <- inlineListToLaTeX caption let capt = if isEmpty captionText |