diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-04-02 23:29:58 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-04-02 23:29:58 +0200 |
commit | e281a7cda0b7901995705138f10a3748004abff4 (patch) | |
tree | 18b77259a20b869afcfb1e0f6d7c922d9ab74dd4 /src/Text | |
parent | b474a23296eed3c80dfce06bf618e837975698ba (diff) | |
download | pandoc-e281a7cda0b7901995705138f10a3748004abff4.tar.gz |
Make sure docx/_rels/.rels gets into data files.
embedDir in file-embed excludes hidden files, so we need
to add this manually.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Data.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Data.hs b/src/Text/Pandoc/Data.hs index df26f5412..b8e189440 100644 --- a/src/Text/Pandoc/Data.hs +++ b/src/Text/Pandoc/Data.hs @@ -14,4 +14,8 @@ dataFiles = map (\(fp, contents) -> (Posix.joinPath (splitDirectories fp), contents)) dataFiles' dataFiles' :: [(FilePath, B.ByteString)] -dataFiles' = ("MANUAL.txt", $(embedFile "MANUAL.txt")) : $(embedDir "data") +dataFiles' = ("MANUAL.txt", $(embedFile "MANUAL.txt")) : + -- handle the hidden file separately, since embedDir doesn't + -- include it: + ("docx/_rels/.rels", $(embedFile "data/docx/_rels/.rels")) : + $(embedDir "data") |