aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/App.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs
index d8409a00f..bc1d4ce18 100644
--- a/src/Text/Pandoc/App.hs
+++ b/src/Text/Pandoc/App.hs
@@ -413,8 +413,8 @@ convertWithOpts opts = do
mconcat <$> mapM (readFile' >=> r readerOpts) sources
metadata <- if format == "jats" &&
- lookup "csl" (optMetadata opts) == Nothing &&
- lookup "citation-style" (optMetadata opts) == Nothing
+ isNothing (lookup "csl" (optMetadata opts)) &&
+ isNothing (lookup "citation-style" (optMetadata opts))
then do
jatsCSL <- readDataFile datadir "jats.csl"
let jatsEncoded = makeDataURI ("application/xml", jatsCSL)