From 07bce91f4f1614967dd6f3698238d51f5290aae7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 12 Jun 2018 10:30:16 -0700 Subject: Allow --template to take a URL argument. --- src/Text/Pandoc/App.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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' | -- cgit v1.2.3