LaTeX reader: use \\ to separate multiple authors.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1727 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2009-12-31 01:16:34 +00:00
parent 54dda0ff9e
commit 998fb9820e

View file

@ -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