From 998fb9820ee5e1cefd6960b8e18a656717689494 Mon Sep 17 00:00:00 2001 From: fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> Date: Thu, 31 Dec 2009 01:16:34 +0000 Subject: [PATCH] LaTeX reader: use \\ to separate multiple authors. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1727 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Readers/LaTeX.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index cd1312966..85f9fcbf0 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -317,11 +317,11 @@ title = try $ do authors :: GenParser Char ParserState Block authors = try $ do string "\\author{" - authors' <- sepBy (many1 (notFollowedBy (oneOf "};,") >> inline)) (oneOf ",;") + raw <- many1 (notFollowedBy (char '}') >> inline) + let authors' = map normalizeSpaces $ splitBy LineBreak raw char '}' spaces - let authors'' = map normalizeSpaces authors' - updateState (\s -> s { stateAuthors = authors'' }) + updateState (\s -> s { stateAuthors = authors' }) return Null date :: GenParser Char ParserState Block