git.iko.soy/typeable/pandoc
on master help sign in
Use isNothing.
commitc2eb7d085743b8a78d4580d5a07baa899fa9b64e authorJohn MacFarlane <jgm@berkeley.edu> dateThu 1 Jun 2017, 14:16 (9 years ago) parent00d8585
1 file changed+2−2
src/Text/Pandoc/App.hs+2−2
src/Text/Pandoc/App.hs+2−2
@@ -413,8 +413,8 @@ convertWithOpts opts = do
413413 mconcat <$> mapM (readFile' >=> r readerOpts) sources
414414
415415 metadata <- if format == "jats" &&
416− lookup "csl" (optMetadata opts) == Nothing &&
417− lookup "citation-style" (optMetadata opts) == Nothing
416+ isNothing (lookup "csl" (optMetadata opts)) &&
417+ isNothing (lookup "citation-style" (optMetadata opts))
418418 then do
419419 jatsCSL <- readDataFile datadir "jats.csl"
420420 let jatsEncoded = makeDataURI ("application/xml", jatsCSL)