Fix QtHelp: OS dependent path separator is used in .qhp file

This commit is contained in:
Takeshi KOMIYA committed 2019-01-12 23:00:58 +09:00
1 parent 18e8774f90
commit 1a853ab35b
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -175,6 +175,7 @@ Bugs fixed
* LaTeX: authors are not shown if :confval:`latex_documents` omitted
* HTML: Invalid HTML5 file is generated for a glossary having multiple terms for
one description (refs: #4611)
* QtHelp: OS dependent path separator is used in .qhp file
Testing
--------
+2 -2
View File
@@ -24,7 +24,7 @@ from sphinx.environment.adapters.indexentries import IndexEntries
from sphinx.locale import __
from sphinx.util import logging
from sphinx.util.nodes import NodeMatcher
from sphinx.util.osutil import make_filename
from sphinx.util.osutil import canon_path, make_filename
from sphinx.util.template import SphinxRenderer
if False:
@@ -260,7 +260,7 @@ class QtHelpBuilder(StandaloneHTMLBuilder):
for fn in sorted(files):
if (resourcedir and not fn.endswith('.js')) or fn.endswith('.html'):
filename = path.join(root, fn)[olen:]
project_files.append(filename)
project_files.append(canon_path(filename))
return project_files