diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 3d3e6ae5d..af4efd13b 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -422,7 +422,9 @@ blockToLaTeX (Table caption aligns widths heads rows) = do let notes = vcat $ map toNote tableNotes let colDescriptors = text $ concat $ map toColDescriptor aligns modify $ \s -> s{ stTable = True, stInTable = False, stTableNotes = [] } - return $ "\\begin{longtable}[c]" <> braces colDescriptors + return $ "\\begin{longtable}[c]" <> + braces ("@{}" <> colDescriptors <> "@{}") + -- the @{} removes extra space at beginning and end $$ "\\hline\\noalign{\\medskip}" $$ headers $$ vcat rows'