Docx reader: Fix window path for image lookup.
Don't use os-sensitive "combine", since we always want the paths in our
zip-archive to use forward-slashes.
commit4ef850ded53c7e2bd815dbcb3d2e2b1af3b3de69
authorJesse Rosenthal <jrosenthal@jhu.edu>
dateTue 2 Sep 2014, 13:45 (12 years ago)
parent3533218
src/Text/Pandoc/Readers/Docx/Parse.hs+1−1
@@ -584,7 +584,7 @@ expandDrawingId s = do
584584 target <- asks (lookupRelationship s . envRelationships)
585585 case target of
586586 Just filepath -> do
587− bytes <- asks (lookup (combine "word" filepath) . envMedia)
587+ bytes <- asks (lookup ("word/" ++ filepath) . envMedia)
588588 case bytes of
589589 Just bs -> return (filepath, bs)
590590 Nothing -> throwError DocxError