Skip to content

Commit

Permalink
Merge pull request #3719 from iandol/patch-2
Browse files Browse the repository at this point in the history
Add keywords metadata to docx core.xml document properties
  • Loading branch information
jgm authored Jun 2, 2017
2 parents e43ea03 + b2fe101 commit a063ba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Text/Pandoc/Writers/Docx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ writeDocx opts doc@(Pandoc meta _) = do
,("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance")]
$ mknode "dc:title" [] (stringify $ docTitle meta)
: mknode "dc:creator" [] (intercalate "; " (map stringify $ docAuthors meta))
: mknode "cp:keywords" [] (intercalate ", " (map stringify $ docKeywords meta))
: (\x -> [ mknode "dcterms:created" [("xsi:type","dcterms:W3CDTF")] x
, mknode "dcterms:modified" [("xsi:type","dcterms:W3CDTF")] x
]) (formatTime defaultTimeLocale "%FT%XZ" utctime)
Expand Down

0 comments on commit a063ba5

Please sign in to comment.