From 1f9d2f8fe780fa846c06d3693317a720203b1269 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 26 Jul 2007 03:49:21 +0000 Subject: 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 --- src/Text/Pandoc/Writers/LaTeX.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index d9982cb69..c2303850a 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -75,10 +75,8 @@ latexHeader options (Meta title authors date) = do else do title' <- inlineListToLaTeX title return $ "\\title{" ++ title' ++ "}\n" extras <- get >>= (return . unlines . S.toList) - let authorstext = if null authors - then "" - else "\\author{" ++ (joinWithSep "\\\\" - (map stringToLaTeX authors)) ++ "}\n" + let authorstext = "\\author{" ++ (joinWithSep "\\\\" + (map stringToLaTeX authors)) ++ "}\n" let datetext = if date == "" then "" else "\\date{" ++ stringToLaTeX date ++ "}\n" -- cgit v1.2.3