mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, anon names, fix regex str/unicode complaint
This commit is contained in:
parent
765ca9f400
commit
9a9acc842a
@ -6044,7 +6044,7 @@ class CPPXRefRole(XRefRole):
|
|||||||
if not has_explicit_title:
|
if not has_explicit_title:
|
||||||
# major hax: replace anon names via simple string manipulation.
|
# major hax: replace anon names via simple string manipulation.
|
||||||
# Can this actually fail?
|
# Can this actually fail?
|
||||||
title = _anon_identifier_re.sub("[anonymous]", title)
|
title = _anon_identifier_re.sub("[anonymous]", str(title))
|
||||||
|
|
||||||
if refnode['reftype'] == 'any':
|
if refnode['reftype'] == 'any':
|
||||||
# Assume the removal part of fix_parens for :any: refs.
|
# Assume the removal part of fix_parens for :any: refs.
|
||||||
|
Loading…
Reference in New Issue
Block a user