diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-29 19:36:41 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-29 19:37:21 +0900 |
commit | fe9473f42e71db5fca3281ecd09f0a39f5683385 (patch) | |
tree | 75df1e16faa935738bc293085d52d748b24727fe /sphinx/domains/python.py | |
parent | ce25d0080ea6090bf14857049516e91419a64ace (diff) | |
download | sphinx-git-fe9473f42e71db5fca3281ecd09f0a39f5683385.tar.gz |
Fix #7219: py:module directive generates incorrect index entry
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r-- | sphinx/domains/python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index eb8af45f9..64a19fc48 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -926,8 +926,8 @@ class PyModule(SphinxDirective): # the platform and synopsis aren't printed; in fact, they are only # used in the modindex currently ret.append(target) - indextext = _('%s (module)') % modname - inode = addnodes.index(entries=[('single', indextext, node_id, '', None)]) + indextext = '%s; %s' % (pairindextypes['module'], modname) + inode = addnodes.index(entries=[('pair', indextext, node_id, '', None)]) ret.append(inode) return ret |