git.iko.soy/typeable/pandoc
on master help sign in
Revert "Docx reader: Fix windows error"

This reverts commit 2142bbe572cea00b7bb5ad3e10a3afb26845a1f7.

commit0719807401f1e0dad1237a12301b465fb78b833f authorJesse Rosenthal <jrosenthal@jhu.edu> dateThu 7 Feb 2019, 15:06 (8 years ago) parent2142bbe
1 file changed+1−2
src/Text/Pandoc/Readers/Docx/Parse.hs+1−2
src/Text/Pandoc/Readers/Docx/Parse.hs+1−2
@@ -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