git.iko.soy/typeable/pandoc
on master help sign in
Include empty \author{} in LaTeX preamble if no

author specified; otherwise LaTeX gives an error. git-svn-id: https://pandoc.googlecode.com/svn/trunk@803 788f1e2b-df1e-0410-8736-df70ead52e1b

commit1f9d2f8fe780fa846c06d3693317a720203b1269 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 26 Jul 2007, 03:49 (19 years ago) parent453dc53
1 file changed+2−4
src/Text/Pandoc/Writers/LaTeX.hs+2−4
src/Text/Pandoc/Writers/LaTeX.hs+2−4
@@ -75,10 +75,8 @@ latexHeader options (Meta title authors date) = do
7575 else do title' <- inlineListToLaTeX title
7676 return $ "\\title{" ++ title' ++ "}\n"
7777 extras <- get >>= (return . unlines . S.toList)
78− let authorstext = if null authors
79− then ""
80− else "\\author{" ++ (joinWithSep "\\\\"
81− (map stringToLaTeX authors)) ++ "}\n"
78+ let authorstext = "\\author{" ++ (joinWithSep "\\\\"
79+ (map stringToLaTeX authors)) ++ "}\n"
8280 let datetext = if date == ""
8381 then ""
8482 else "\\date{" ++ stringToLaTeX date ++ "}\n"