git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #1487 from mpickering/master

MediaBag: Improved normalisation when writing files

commit1819bdfaed91670fef11b47d09e1de4d19034997 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 5 Aug 2014, 08:28 (12 years ago) parent2de2842b04bb3b
1 file changed+1−1
src/Text/Pandoc/MediaBag.hs+1−1
src/Text/Pandoc/MediaBag.hs+1−1
@@ -99,7 +99,7 @@ writeMedia :: Bool -> FilePath -> (FilePath, BL.ByteString) -> IO ()
9999writeMedia verbose dir (subpath, bs) = do
100100 -- we join and split to convert a/b/c to a\b\c on Windows;
101101 -- in zip containers all paths use /
102− let fullpath = dir </> joinPath (splitPath subpath)
102+ let fullpath = dir </> normalise subpath
103103 createDirectoryIfMissing True $ takeDirectory fullpath
104104 when verbose $ UTF8.hPutStrLn stderr $ "pandoc: extracting " ++ fullpath
105105 BL.writeFile fullpath bs