DocBook reader: set metadata "author" not "authors"

This commit is contained in:
John MacFarlane 2014-04-04 21:39:08 -07:00
parent c5a0c7a819
commit e06aa97bb9

View file

@ -792,7 +792,7 @@ parseBlock (Elem e) =
getAuthor = (:[]) <$> getInlines e >>= addMeta "author"
getAuthorGroup = do
let terms = filterChildren (named "author") e
mapM getInlines terms >>= addMeta "authors"
mapM getInlines terms >>= addMeta "author"
getDate = getInlines e >>= addMeta "date"
parseTable = do
let isCaption x = named "title" x || named "caption" x