Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intersphinx - incorrect links to pages containing spaces in their name #7745

Closed
alexandremoyer opened this issue May 28, 2020 · 0 comments
Closed

Comments

@alexandremoyer
Copy link

Describe the bug
Links that point to a file with spaces in its name and created through Intersphinx are incorrect.

To Reproduce

  • Create a project "Example Project" with a file called File With Spaces.rst
  • add a label test just before a chapter Test Chapter
  • Configure another project that will use the Intersphinx extension pointing to Example Project (example).
  • call a reference to the test label :ref:example:test.
  • resulting link is pointing to File with displayed name With Spaces.html#$ Test Chapter

Here is the content the objects.inv

$ python -msphinx.ext.intersphinx buildExample\html\objects.inv
std:doc
        File With Spaces                         With Spaces.html Main chapter           : File
        index                                    Welcome to Example’s documentation!     : index.html
std:label
        file-with-space                          With Spaces.html#$ Main chapter         : File
        genindex                                 Index                                   : genindex.html
        modindex                                 Module Index                            : py-modindex.html
        py-modindex                              Python Module Index                     : py-modindex.html
        search                                   Search Page                             : search.html
        test                                     With Spaces.html#$ Test Chapter         : File

Expected behavior
Correct link should be Test Chapter and pointing to File With Spaces.html#test

Environment info

  • Windows 10
  • Python version: 3.7.3
  • Sphinx version: 3.0.3
  • Sphinx extensions: [sphinx.ext.intersphinx]
@tk0miya tk0miya added this to the 3.2.0 milestone Jul 13, 2020
tk0miya added a commit that referenced this issue Jul 15, 2020
Fix #7745: html: inventory is broken if the docname contains a space
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants