@@ -73,6 +73,7 @@ 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
76import Text.Pandoc.Readers.Docx.Util
77import Text.Pandoc.Readers.Docx.Util
77import Text.Pandoc.Readers.Docx.Fields
78import Text.Pandoc.Readers.Docx.Fields
78import Text.Pandoc.Shared (filteredFilesFromArchive, safeRead)
79import Text.Pandoc.Shared (filteredFilesFromArchive, safeRead)
@@ -505,7 +506,7 @@ filePathToRelType "word/_rels/endnotes.xml.rels" _ = Just InEndnote
505-- -- to see if it's a documentPath, we have to check against the dynamic
506-- -- to see if it's a documentPath, we have to check against the dynamic
506-- -- docPath specified in "_rels/.rels"
507-- -- docPath specified in "_rels/.rels"
507filePathToRelType path docXmlPath =
508filePathToRelType path docXmlPath =
508− if path == "word/_rels/" ++ (takeFileName docXmlPath) ++ ".rels"
509+ if path == "word/_rels/" ++ (PSX.takeFileName docXmlPath) ++ ".rels"
509 then Just InDocument
510 then Just InDocument
510 else Nothing
511 else Nothing