summaryrefslogtreecommitdiff
path: root/sphinx/builders
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2013-08-10 18:25:28 +0900
committershimizukawa <shimizukawa@gmail.com>2013-08-10 18:25:28 +0900
commit088ba3cb2cb8a1d27cca3d5ab065dc130017a52e (patch)
treeb8d5304b4e8fd2ca8595375f0777087639a2536c /sphinx/builders
parent1a81abf4003128a2478e1a3800d851e3781262ee (diff)
downloadsphinx-088ba3cb2cb8a1d27cca3d5ab065dc130017a52e.tar.gz
Sphinx generates broken ePub on Windows. Closes #1232
Diffstat (limited to 'sphinx/builders')
-rw-r--r--sphinx/builders/epub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/builders/epub.py b/sphinx/builders/epub.py
index 035cec6c..e35c4e7d 100644
--- a/sphinx/builders/epub.py
+++ b/sphinx/builders/epub.py
@@ -538,6 +538,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
if ext not in ('.js', '.xml'):
self.warn('unknown mimetype for %s, ignoring' % filename)
continue
+ filename = filename.replace(os.sep, '/')
projectfiles.append(_file_template % {
'href': self.esc(filename),
'id': self.esc(self.make_id(filename)),
@@ -569,6 +570,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
html_tmpl = None
if self.config.epub_cover:
image, html_tmpl = self.config.epub_cover
+ image = image.replace(os.sep, '/')
mpos = content_tmpl.rfind('</metadata>')
cpos = content_tmpl.rfind('\n', 0 , mpos) + 1
content_tmpl = content_tmpl[:cpos] + \