git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: Allow more flexible table alignment
7a18879Henrik Tramberend
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -591,7 +591,7 @@ blockToLaTeX (Table caption aligns widths heads rows) = do
591 rows' <- mapM (tableRowToLaTeX False aligns widths) rows
591 rows' <- mapM (tableRowToLaTeX False aligns widths) rows
592 let colDescriptors = text $ concat $ map toColDescriptor aligns
592 let colDescriptors = text $ concat $ map toColDescriptor aligns
593 modify $ \s -> s{ stTable = True }
593 modify $ \s -> s{ stTable = True }
594− return $ "\\begin{longtable}[c]" <>
594+ return $ "\\begin{longtable}[]" <>
595 braces ("@{}" <> colDescriptors <> "@{}")
595 braces ("@{}" <> colDescriptors <> "@{}")
596 -- the @{} removes extra space at beginning and end
596 -- the @{} removes extra space at beginning and end
597 $$ capt
597 $$ capt