You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A markup like :ref:`Python <test >` results in this warning: WARNING: undefined label: test .
By looking at it in the terminal it's difficult to notice the trailing space.
By using the repr of the value instead, the warning will show WARNING: undefined label: 'test '.
How to Reproduce
:ref:`Python <test >`
Expected behavior
WARNING: undefined label: 'test ' instead of WARNING: undefined label: test .
We can use a single quote for the label. So the "repr" form is a bit confusable. I'm not sure what is better message for a label including a single quote.
Describe the bug
A markup like
:ref:`Python <test >`
results in this warning:WARNING: undefined label: test
.By looking at it in the terminal it's difficult to notice the trailing space.
By using the
repr
of the value instead, the warning will showWARNING: undefined label: 'test '
.How to Reproduce
Expected behavior
WARNING: undefined label: 'test '
instead ofWARNING: undefined label: test
.Your project
Screenshots
No response
OS
Linux
Python version
3.10
Sphinx version
Sphinx v4.5.0
Sphinx extensions
No response
Extra tools
No response
Additional context
sphinx-contrib/sphinx-lint#27 (comment)
The text was updated successfully, but these errors were encountered: