@@ -73,6 +73,7 @@ import Data.List
7373import qualified Data.Map as M
7474import Data.Maybe
7575import System.FilePath
76+import qualified System.FilePath.Posix as PSX
7677import Text.Pandoc.Readers.Docx.Util
7778import Text.Pandoc.Readers.Docx.Fields
7879import Text.Pandoc.Shared (filteredFilesFromArchive, safeRead)
@@ -505,7 +506,7 @@ filePathToRelType "word/_rels/endnotes.xml.rels" _ = Just InEndnote
505506-- -- to see if it's a documentPath, we have to check against the dynamic
506507-- -- docPath specified in "_rels/.rels"
507508filePathToRelType path docXmlPath =
508− if path == "word/_rels/" ++ (takeFileName docXmlPath) ++ ".rels"
509+ if path == "word/_rels/" ++ (PSX.takeFileName docXmlPath) ++ ".rels"
509510 then Just InDocument
510511 else Nothing
511512