diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-22 23:42:56 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-22 23:42:56 +0900 |
| commit | 8edae5fe2864450d1e7493844f1a8548eb317c9f (patch) | |
| tree | 6b459dc5380af508ef3f9209f62405114a69fe37 /sphinx/domains/python.py | |
| parent | 9ae34e1757c957703d11178bee20a93f186b6dff (diff) | |
| parent | 7bbf79c313050dc8117964b2619049870682ce36 (diff) | |
| download | sphinx-git-8edae5fe2864450d1e7493844f1a8548eb317c9f.tar.gz | |
Merge pull request #7356 from tk0miya/7301_node_id
Fix #7301: Allow . and _ for node_id
Diffstat (limited to 'sphinx/domains/python.py')
| -rw-r--r-- | sphinx/domains/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 558eb3fa8..fae1991c7 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -425,7 +425,7 @@ class PyObject(ObjectDescription): signode: desc_signature) -> None: modname = self.options.get('module', self.env.ref_context.get('py:module')) fullname = (modname + '.' if modname else '') + name_cls[0] - node_id = make_id(self.env, self.state.document, modname or '', name_cls[0]) + node_id = make_id(self.env, self.state.document, '', fullname) signode['ids'].append(node_id) # Assign old styled node_id(fullname) not to break old hyperlinks (if possible) |
