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:
parent
54dda0ff9e
commit
998fb9820e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue