@@ -422,7 +422,9 @@ blockToLaTeX (Table caption aligns widths heads rows) = do
422422 let notes = vcat $ map toNote tableNotes
423423 let colDescriptors = text $ concat $ map toColDescriptor aligns
424424 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
426428 $$ "\\hline\\noalign{\\medskip}"
427429 $$ headers
428430 $$ vcat rows'