mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
Docbook writer: Add personname element to docbook author.
Closes #6244.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user