git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: use \\ to separate multiple authors.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1727 788f1e2b-df1e-0410-8736-df70ead52e1b

commit998fb9820ee5e1cefd6960b8e18a656717689494 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 31 Dec 2009, 01:16 (17 years ago) parent54dda0f
1 file changed+3−3
src/Text/Pandoc/Readers/LaTeX.hs+3−3
src/Text/Pandoc/Readers/LaTeX.hs+3−3
@@ -317,11 +317,11 @@ title = try $ do
317317authors :: GenParser Char ParserState Block
318318authors = try $ do
319319 string "\\author{"
320− authors' <- sepBy (many1 (notFollowedBy (oneOf "};,") >> inline)) (oneOf ",;")
320+ raw <- many1 (notFollowedBy (char '}') >> inline)
321+ let authors' = map normalizeSpaces $ splitBy LineBreak raw
321322 char '}'
322323 spaces
323− let authors'' = map normalizeSpaces authors'
324− updateState (\s -> s { stateAuthors = authors'' })
324+ updateState (\s -> s { stateAuthors = authors' })
325325 return Null
326326
327327date :: GenParser Char ParserState Block