git.iko.soy/typeable/pandoc
on master help sign in
JATS writer: don't include jats.csl in metadata if csl already specified.
commit80c3c93273fee0eceee2ebd996c79e2151aee4d1 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 31 Mar 2017, 15:15 (10 years ago) parent8a3ef99
1 file changed+3−1
src/Text/Pandoc/App.hs+3−1
src/Text/Pandoc/App.hs+3−1
@@ -404,7 +404,9 @@ convertWithOpts opts = do
404404 withMediaBag . r readerOpts) sources
405405 return (mconcat (map fst pairs), mconcat (map snd pairs))
406406
407− metadata <- if format == "jats"
407+ metadata <- if format == "jats" &&
408+ lookup "csl" (optMetadata opts) == Nothing &&
409+ lookup "citation-style" (optMetadata opts) == Nothing
408410 then do
409411 jatsCSL <- readDataFile datadir "jats.csl"
410412 let jatsEncoded = makeDataURI ("application/xml", jatsCSL)