Docbook writer: Add personname element to docbook author.

Closes #6244.
This commit is contained in:
John MacFarlane 2020-04-01 09:05:13 -07:00
parent f6615ad85e
commit 8ec3f6fc46

View file

@ -47,7 +47,8 @@ authorToDocbook opts name' = do
let colwidth = if writerWrapText opts == WrapAuto
then Just $ writerColumns opts
else Nothing
return $ B.rawInline "docbook" $ render colwidth $
return $ B.rawInline "docbook" $
render colwidth $ inTags True "personname" [] $
if T.any (== ',') name
then -- last name first
let (lastname, rest) = T.break (==',') name