@@ -422,7 +422,9 @@ blockToLaTeX (Table caption aligns widths heads rows) = do
422 let notes = vcat $ map toNote tableNotes
422 let notes = vcat $ map toNote tableNotes
423 let colDescriptors = text $ concat $ map toColDescriptor aligns
423 let colDescriptors = text $ concat $ map toColDescriptor aligns
424 modify $ \s -> s{ stTable = True, stInTable = False, stTableNotes = [] }
424 modify $ \s -> s{ stTable = True, stInTable = False, stTableNotes = [] }
425− return $ "\\begin{longtable}[c]" <> braces colDescriptors
425+ return $ "\\begin{longtable}[c]" <>
426+ braces ("@{}" <> colDescriptors <> "@{}")
427+ -- the @{} removes extra space at beginning and end
426 $$ "\\hline\\noalign{\\medskip}"
428 $$ "\\hline\\noalign{\\medskip}"
427 $$ headers
429 $$ headers
428 $$ vcat rows'
430 $$ vcat rows'