mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
define_module(): Change the "index sub-item" for definitions at module
scope to be " (in module <name>)" instead of " (in <name>)" to be consistent with \withsubitem usage throughout the documentation. This achieves consistency in indexing throughout the documentation.
This commit is contained in:
parent
ec77e6590d
commit
5942b439b3
1 changed files with 1 additions and 1 deletions
|
@ -607,7 +607,7 @@ sub define_module{
|
||||||
}
|
}
|
||||||
$word = "$word " if $word;
|
$word = "$word " if $word;
|
||||||
$THIS_MODULE = "$name";
|
$THIS_MODULE = "$name";
|
||||||
$INDEX_SUBITEM = "(in $name)";
|
$INDEX_SUBITEM = "(in module $name)";
|
||||||
print "[$name]";
|
print "[$name]";
|
||||||
return make_mod_index_entry(
|
return make_mod_index_entry(
|
||||||
"<tt class='module'>$name</tt> (${word}module)", 'DEF');
|
"<tt class='module'>$name</tt> (${word}module)", 'DEF');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue