diff options
Diffstat (limited to 'src/Text/Pandoc')
| -rw-r--r-- | src/Text/Pandoc/App.hs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 99d9aa4cb..938bb91e0 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -298,6 +298,8 @@ convertWithOpts opts = do               return $ (varname, s) : vars    runIO' $ do +    setUserDataDir datadir +      variables <-          withList (addStringAsVariable "sourcefile")                   (reverse $ optInputFiles opts) @@ -451,7 +453,6 @@ convertWithOpts opts = do                    mconcat <$> mapM (readFile' >=> r readerOpts) sources -    setUserDataDir datadir      when (readerName == "markdown_github" ||            writerName == "markdown_github") $        report $ Deprecated "markdown_github" "Use gfm instead." | 
