LaTeX reader: Fixed bug in authors.

This commit is contained in:
John MacFarlane
2012-02-05 09:06:34 -08:00
parent bae3b49a5a
commit 922469bbb2
+3 -1
View File
@@ -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 ()