From b80577b395cc2ea9c3b50910f7e0e77975112613 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 15 Jul 2014 12:17:45 -0700 Subject: Shared.fetchItem: unescape URI encoding before reading local file. Close #1427. --- src/Text/Pandoc/Shared.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 1fd801cd8..bb13836f2 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -772,7 +772,7 @@ fetchItem sourceURL s let mime = case takeExtension s of ".gz" -> getMimeType $ dropExtension s x -> getMimeType x - cont <- BS.readFile s + cont <- BS.readFile $ unEscapeString s return (cont, mime) -- | Read from a URL and return raw data and maybe mime type. -- cgit v1.2.3