mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
LaTeX reader: Fixed bug in authors.
This commit is contained in:
@@ -266,8 +266,10 @@ addSubtitle tit = updateState (\s -> s{ stateTitle = stateTitle s ++
|
||||
authors :: LP ()
|
||||
authors = try $ do
|
||||
char '{'
|
||||
let oneAuthor = mconcat <$> many1 (notFollowedBy' (controlSeq "and") >> inline)
|
||||
let oneAuthor = mconcat <$>
|
||||
many1 (notFollowedBy' (controlSeq "and") >> inline)
|
||||
auths <- sepBy oneAuthor (controlSeq "and")
|
||||
char '}'
|
||||
updateState (\s -> s { stateAuthors = map (normalizeSpaces . toList) auths })
|
||||
|
||||
addDate :: Inlines -> LP ()
|
||||
|
||||
Reference in New Issue
Block a user