git.iko.soy/typeable/pandoc
on master help sign in
Docbook writer: Add personname element to docbook author.

Closes #6244.

commit8ec3f6fc4646b4e61db8a624044c5e42e930691c authorJohn MacFarlane <jgm@berkeley.edu> dateWed 1 Apr 2020, 09:05 (7 years ago) parentf6615ad
1 file changed+2−1
src/Text/Pandoc/Writers/Docbook.hs+2−1
src/Text/Pandoc/Writers/Docbook.hs+2−1
@@ -47,7 +47,8 @@ authorToDocbook opts name' = do
4747 let colwidth = if writerWrapText opts == WrapAuto
4848 then Just $ writerColumns opts
4949 else Nothing
50− return $ B.rawInline "docbook" $ render colwidth $
50+ return $ B.rawInline "docbook" $
51+ render colwidth $ inTags True "personname" [] $
5152 if T.any (== ',') name
5253 then -- last name first
5354 let (lastname, rest) = T.break (==',') name