summaryrefslogtreecommitdiffstats
path: root/Doc/perl/python.perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-04-15 17:46:00 (GMT)
committerFred Drake <fdrake@acm.org>2002-04-15 17:46:00 (GMT)
commiteeb5ec42e03f7de46d60cfd547bc083071cb5745 (patch)
treecbe5e6cb088f73850055cd7d3198859c53aa70e4 /Doc/perl/python.perl
parent726e013eff519a3e3a40b0313e776608c12fafc5 (diff)
downloadcpython-eeb5ec42e03f7de46d60cfd547bc083071cb5745.zip
cpython-eeb5ec42e03f7de46d60cfd547bc083071cb5745.tar.gz
cpython-eeb5ec42e03f7de46d60cfd547bc083071cb5745.tar.bz2
Add support for \cmemberline and the cmemberdesc environment.
Diffstat (limited to 'Doc/perl/python.perl')
-rw-r--r--Doc/perl/python.perl24
1 files changed, 24 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 62c8dc6..5da9710 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -939,6 +939,30 @@ sub do_env_cfuncdesc{
. '</dl>';
}
+sub do_cmd_cmemberline{
+ local($_) = @_;
+ my $container = next_argument();
+ my $type = next_argument();
+ my $name = next_argument();
+ my $idx = make_str_index_entry("<tt class=\"cmember\">$name</tt>"
+ . " ($type member)");
+ $idx =~ s/ \(.*\)//;
+ return "<dt>$type <b>$idx</b>\n<dd>"
+ . $_;
+}
+sub do_env_cmemberdesc{
+ local($_) = @_;
+ my $container = next_argument();
+ my $type = next_argument();
+ my $name = next_argument();
+ my $idx = make_str_index_entry("<tt class=\"cmember\">$name</tt>"
+ . " ($type member)");
+ $idx =~ s/ \(.*\)//;
+ return "<dl><dt>$type <b>$idx</b>\n<dd>"
+ . $_
+ . '</dl>';
+}
+
sub do_env_csimplemacrodesc{
local($_) = @_;
my $name = next_argument();