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
Change pydoc_data to show the "input" of grammar snippet
directives, which is formatted the way we want.
See also this Sphinx issue: sphinx-doc/sphinx#13302
And: sphinx-doc/sphinx#4454
A known issue is cross-grammar links, like those in
the string format specification mini-language, which render
as reST source:
element_index: `~python-grammar:digit`+ | `index_string`
I don't see a good way to fix this before Sphinx is refactored.
Describe the bug
The
visit_productionlist
method ofTextTranslator
aligns continuation lines usinglen(lastname)
spaces, so they're misaligned relative to the header line which usesmaxlen
.See CPython's pydoc_data.topics for an example:
https://github.com/python/cpython/blob/58a4357e29a15135e6fd99f320c60f8ea0472d27/Lib/pydoc_data/topics.py#L42-L50
How to Reproduce
Environment Information
Sphinx extensions
CPython main branch. (Sorry for not minimizing the reproducer, but, IMO no extensions are needed here.)
Additional context
No response
The text was updated successfully, but these errors were encountered: