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