summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-05-11 18:31:17 (GMT)
committerFred Drake <fdrake@acm.org>1998-05-11 18:31:17 (GMT)
commit2e7edb80e369fee740433386b4d7bcbb32c2619d (patch)
tree1ccb13e802cee6e32c84ded1efe0bf8d24cf4ed7 /Doc/perl
parentd69e2c4f33d57d51d24b00552e197e6ed022f676 (diff)
downloadcpython-2e7edb80e369fee740433386b4d7bcbb32c2619d.zip
cpython-2e7edb80e369fee740433386b4d7bcbb32c2619d.tar.gz
cpython-2e7edb80e369fee740433386b4d7bcbb32c2619d.tar.bz2
do_cmd_kwindex(): Re-implement now that \kwindex is used again (ref man).
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/python.perl10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 4c9d86d..3a1eaa1 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -284,6 +284,16 @@ sub do_cmd_index{
"$aname$anchor_invisible_mark</a>" . $_;
}
+sub do_cmd_kwindex{
+ local($_) = @_;
+ my($str,$br_id) = next_argument_id();
+ #
+ my($name,$aname,$ahref) = link_info($br_id);
+ add_index_entry("<tt>$str</tt>!keyword", $ahref);
+ add_index_entry("keyword!<tt>$str</tt>", $ahref);
+ "$aname$anchor_invisible_mark</a>" . $_;
+}
+
sub do_cmd_indexii{
local($_) = @_;
my($str1,$br_id) = next_argument_id();