diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-12-30 15:50:37 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-12-30 15:50:37 -0800 |
commit | 5e5859f126d70a31f42afda9df7d11990a29f6b6 (patch) | |
tree | 57208a817a46a3f3eef123514642735e783194e2 /src/Text/Pandoc | |
parent | 84ed0f055f71f32fc2db1dbe962e83cd0bb0b5d8 (diff) | |
download | pandoc-5e5859f126d70a31f42afda9df7d11990a29f6b6.tar.gz |
Revert "Workaround for problem with file-embed."
This reverts commit 84ed0f055f71f32fc2db1dbe962e83cd0bb0b5d8.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 4 |
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 |