diff options
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 | ||||
-rw-r--r-- | tests/tables.latex | 10 |
2 files changed, 6 insertions, 6 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 diff --git a/tests/tables.latex b/tests/tables.latex index 5ff853a9c..2a8013413 100644 --- a/tests/tables.latex +++ b/tests/tables.latex @@ -4,7 +4,7 @@ Simple table with caption: \hline\noalign{\medskip} Right & Left & Center & Default \\\noalign{\medskip} -\hline\endhead\noalign{\medskip} +\hline\noalign{\medskip} 12 & 12 & 12 & 12 \\\noalign{\medskip} 123 & 123 & 123 & 123 @@ -22,7 +22,7 @@ Simple table without caption: \hline\noalign{\medskip} Right & Left & Center & Default \\\noalign{\medskip} -\hline\endhead\noalign{\medskip} +\hline\noalign{\medskip} 12 & 12 & 12 & 12 \\\noalign{\medskip} 123 & 123 & 123 & 123 @@ -38,7 +38,7 @@ Simple table indented two spaces: \hline\noalign{\medskip} Right & Left & Center & Default \\\noalign{\medskip} -\hline\endhead\noalign{\medskip} +\hline\noalign{\medskip} 12 & 12 & 12 & 12 \\\noalign{\medskip} 123 & 123 & 123 & 123 @@ -64,7 +64,7 @@ Right Aligned Default aligned } \\\noalign{\medskip} -\hline\endhead\noalign{\medskip} +\hline\noalign{\medskip} \parbox[t]{0.15\columnwidth}{\centering First } & \parbox[t]{0.14\columnwidth}{\raggedright @@ -104,7 +104,7 @@ Right Aligned Default aligned } \\\noalign{\medskip} -\hline\endhead\noalign{\medskip} +\hline\noalign{\medskip} \parbox[t]{0.15\columnwidth}{\centering First } & \parbox[t]{0.14\columnwidth}{\raggedright |