aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs6
1 files 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