Skip to content

Fix redundant parentheses in cross-reference titles - #14637

Open
jdillard wants to merge 1 commit into
sphinx-doc:masterfrom
jdillard:fix-11242-redundant-parens
Open

Fix redundant parentheses in cross-reference titles#14637
jdillard wants to merge 1 commit into
sphinx-doc:masterfrom
jdillard:fix-11242-redundant-parens

Conversation

@jdillard

Copy link
Copy Markdown
Member

Purpose

Prevent XRefRole(fix_parens=True) from appending () to titles that already end with a parenthesized argument list. For example, text(arg) now remains text(arg) instead of becoming text(arg)().

Added regression tests for text and text(arg).

References

AI Disclosure

AI was used to investigate the issue and generate the initial implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix_parens adds redundant parens

1 participant