aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Docx/Parse.hs
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2019-02-07 15:06:25 -0500
committerJesse Rosenthal <jrosenthal@jhu.edu>2019-02-07 15:06:25 -0500
commit0719807401f1e0dad1237a12301b465fb78b833f (patch)
treed90efd638cc0bdcd7ce217767c9217e4079711b4 /src/Text/Pandoc/Readers/Docx/Parse.hs
parent2142bbe572cea00b7bb5ad3e10a3afb26845a1f7 (diff)
downloadpandoc-0719807401f1e0dad1237a12301b465fb78b833f.tar.gz
Revert "Docx reader: Fix windows error"
This reverts commit 2142bbe572cea00b7bb5ad3e10a3afb26845a1f7.
Diffstat (limited to 'src/Text/Pandoc/Readers/Docx/Parse.hs')
-rw-r--r--src/Text/Pandoc/Readers/Docx/Parse.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Docx/Parse.hs b/src/Text/Pandoc/Readers/Docx/Parse.hs
index 1153602b3..3c4791e1a 100644
--- a/src/Text/Pandoc/Readers/Docx/Parse.hs
+++ b/src/Text/Pandoc/Readers/Docx/Parse.hs
@@ -73,7 +73,6 @@ import Data.List
import qualified Data.Map as M
import Data.Maybe
import System.FilePath
-import qualified System.FilePath.Posix as PSX
import Text.Pandoc.Readers.Docx.Util
import Text.Pandoc.Readers.Docx.Fields
import Text.Pandoc.Shared (filteredFilesFromArchive, safeRead)
@@ -506,7 +505,7 @@ filePathToRelType "word/_rels/endnotes.xml.rels" _ = Just InEndnote
-- -- to see if it's a documentPath, we have to check against the dynamic
-- -- docPath specified in "_rels/.rels"
filePathToRelType path docXmlPath =
- if path == "word/_rels/" ++ (PSX.takeFileName docXmlPath) ++ ".rels"
+ if path == "word/_rels/" ++ (takeFileName docXmlPath) ++ ".rels"
then Just InDocument
else Nothing