git.iko.soy/typeable/pandoc
on master help sign in
Set user data dir at beginning, so readDataFile has access to it.
commitb6e0add76aa2479fde9696f1ab25c1101de4de31 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 12 Aug 2017, 12:15 (9 years ago) parent467ca2a
1 file changed+2−1
src/Text/Pandoc/App.hs+2−1
src/Text/Pandoc/App.hs+2−1
@@ -298,6 +298,8 @@ convertWithOpts opts = do
298298 return $ (varname, s) : vars
299299
300300 runIO' $ do
301+ setUserDataDir datadir
302+
301303 variables <-
302304 withList (addStringAsVariable "sourcefile")
303305 (reverse $ optInputFiles opts)
@@ -451,7 +453,6 @@ convertWithOpts opts = do
451453 mconcat <$> mapM (readFile' >=> r readerOpts) sources
452454
453455
454− setUserDataDir datadir
455456 when (readerName == "markdown_github" ||
456457 writerName == "markdown_github") $
457458 report $ Deprecated "markdown_github" "Use gfm instead."