@@ -73,7 +73,6 @@ import Data.List
73import qualified Data.Map as M
73import qualified Data.Map as M
74import Data.Maybe
74import Data.Maybe
75import System.FilePath
75import System.FilePath
76−import qualified System.FilePath.Posix as PSX
77import Text.Pandoc.Readers.Docx.Util
76import Text.Pandoc.Readers.Docx.Util
78import Text.Pandoc.Readers.Docx.Fields
77import Text.Pandoc.Readers.Docx.Fields
79import Text.Pandoc.Shared (filteredFilesFromArchive, safeRead)
78import Text.Pandoc.Shared (filteredFilesFromArchive, safeRead)
@@ -506,7 +505,7 @@ filePathToRelType "word/_rels/endnotes.xml.rels" _ = Just InEndnote
506-- -- to see if it's a documentPath, we have to check against the dynamic
505-- -- to see if it's a documentPath, we have to check against the dynamic
507-- -- docPath specified in "_rels/.rels"
506-- -- docPath specified in "_rels/.rels"
508filePathToRelType path docXmlPath =
507filePathToRelType path docXmlPath =
509− if path == "word/_rels/" ++ (PSX.takeFileName docXmlPath) ++ ".rels"
508+ if path == "word/_rels/" ++ (takeFileName docXmlPath) ++ ".rels"
510 then Just InDocument
509 then Just InDocument
511 else Nothing
510 else Nothing