git.iko.soy/typeable/pandoc
on master help sign in
Revert "Workaround for problem with file-embed."

This reverts commit 84ed0f055f71f32fc2db1dbe962e83cd0bb0b5d8.

commit5e5859f126d70a31f42afda9df7d11990a29f6b6 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 30 Dec 2012, 15:50 (14 years ago) parent84ed0f0
1 file changed+1−3
src/Text/Pandoc/Shared.hs+1−3
src/Text/Pandoc/Shared.hs+1−3
@@ -512,12 +512,10 @@ dataFiles = $(embedDir "data")
512512readDefaultDataFile :: FilePath -> IO B.ByteString
513513readDefaultDataFile fname =
514514#ifdef EMBED_DATA_FILES
515− case lookup (map backToForwardSlash fname) dataFiles of
515+ case lookup fname dataFiles of
516516 Nothing -> ioError $ userError
517517 $ "Data file `" ++ fname ++ "' does not exist"
518518 Just contents -> return contents
519− where backToForwardSlash '\\' = '/'
520− backToForwardSlash c = c
521519#else
522520 getDataFileName ("data" </> fname) >>= B.readFile
523521#endif