diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-26 03:49:21 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-26 03:49:21 +0000 |
commit | 1f9d2f8fe780fa846c06d3693317a720203b1269 (patch) | |
tree | 3f3b14ec0471290ca9150650a9a93251b12a5abb /src | |
parent | 453dc5345792530eb719df57158419eb61c70677 (diff) | |
download | pandoc-1f9d2f8fe780fa846c06d3693317a720203b1269.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 6 |
1 files changed, 2 insertions, 4 deletions
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" |