From 5e5859f126d70a31f42afda9df7d11990a29f6b6 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 30 Dec 2012 15:50:37 -0800 Subject: Revert "Workaround for problem with file-embed." This reverts commit 84ed0f055f71f32fc2db1dbe962e83cd0bb0b5d8. --- src/Text/Pandoc/Shared.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 8626a91c7..7bd35b138 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -512,12 +512,10 @@ dataFiles = $(embedDir "data") readDefaultDataFile :: FilePath -> IO B.ByteString readDefaultDataFile fname = #ifdef EMBED_DATA_FILES - case lookup (map backToForwardSlash fname) dataFiles of + case lookup fname dataFiles of Nothing -> ioError $ userError $ "Data file `" ++ fname ++ "' does not exist" Just contents -> return contents - where backToForwardSlash '\\' = '/' - backToForwardSlash c = c #else getDataFileName ("data" fname) >>= B.readFile #endif -- cgit v1.2.3