aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Shared.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-12-30 15:50:37 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-12-30 15:50:37 -0800
commit5e5859f126d70a31f42afda9df7d11990a29f6b6 (patch)
tree57208a817a46a3f3eef123514642735e783194e2 /src/Text/Pandoc/Shared.hs
parent84ed0f055f71f32fc2db1dbe962e83cd0bb0b5d8 (diff)
downloadpandoc-5e5859f126d70a31f42afda9df7d11990a29f6b6.tar.gz
Revert "Workaround for problem with file-embed."
This reverts commit 84ed0f055f71f32fc2db1dbe962e83cd0bb0b5d8.
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r--src/Text/Pandoc/Shared.hs4
1 files changed, 1 insertions, 3 deletions
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