diff options
-rw-r--r-- | sphinx/domains/std.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/std.py b/sphinx/domains/std.py index b2538f034..d820cfe5c 100644 --- a/sphinx/domains/std.py +++ b/sphinx/domains/std.py @@ -62,7 +62,7 @@ class GenericObject(ObjectDescription): signode.clear() signode += addnodes.desc_name(sig, sig) # normalize whitespace like XRefRole does - name = ws_re.sub('', sig) + name = ws_re.sub(' ', sig) return name def add_target_and_index(self, name: str, sig: str, signode: desc_signature) -> None: |