mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5937 from tk0miya/fix_pathsep_in_qhpfile
Fix QtHelp: OS dependent path separator is used in .qhp file
This commit is contained in:
commit
5d8d8a064e
1
CHANGES
1
CHANGES
@ -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
|
||||
--------
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user