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

role :manpage: with non-digit section renders incorrect url #9927

Open
Un1Gfn opened this issue Dec 2, 2021 · 0 comments
Open

role :manpage: with non-digit section renders incorrect url #9927

Un1Gfn opened this issue Dec 2, 2021 · 0 comments

Comments

@Un1Gfn
Copy link
Contributor

Un1Gfn commented Dec 2, 2021

Describe the bug

In

:manpage:`name(N)`

if N is not a digit, it renders incorrectly.

How to Reproduce

conf.py

manpages_url = 'https://man.archlinux.org/man/{page}.{section}'

reST

:manpage:`termios.h(0p)`

renders

<a class="manpage reference external" href="https://man.archlinux.org/man/termios.h(0p).">termios.h(0p)</a>

where the url

https://man.archlinux.org/man/termios.h(0p).

is incorrect

Expected behavior

https://man.archlinux.org/man/termios.h.0p

Your project

https://github.com/Un1Gfn/sphinx.public

Screenshots

No response

OS

Linux 5.15.5-arch1-1 x86_64

Python version

Python 3.9.9

Sphinx version

4.3.1

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

@Un1Gfn Un1Gfn added the type:bug label Dec 2, 2021
@Un1Gfn Un1Gfn changed the title role :manpage: w/ non-digit section renders incorrectly role :manpage: with non-digit section renders incorrect url Dec 2, 2021
@AA-Turner AA-Turner added this to the some future version milestone Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants