diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-06-12 10:30:16 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-06-12 10:33:34 -0700 |
commit | 07bce91f4f1614967dd6f3698238d51f5290aae7 (patch) | |
tree | c6c0b51024bee28bb7b65f3e55762cc7bc2c982b /src/Text | |
parent | e499769dc0a070f729b2bfde28a0089dee464b61 (diff) | |
download | pandoc-07bce91f4f1614967dd6f3698238d51f5290aae7.tar.gz |
Allow --template to take a URL argument.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/App.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index ac6afa5f1..093f0fcfc 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -381,7 +381,7 @@ convertWithOpts opts = do "" -> tp <.> format _ -> tp Just . UTF8.toString <$> - (readFileStrict tp' `catchError` + ((fst <$> fetchItem tp') `catchError` (\e -> case e of PandocIOError _ e' | |