diff Doc/perl/python.perl @ 11123:2eb2879d567f legacy-trunk

do_cmd_funclineni(): New function; non-indexing form of \funcline.
author Fred Drake <fdrake@acm.org>
date Mon, 12 Jul 1999 16:50:09 +0000
parents 1aa80f5bf9ac
children b1bb6d7a335f
line wrap: on
line diff
--- a/Doc/perl/python.perl	Mon Jul 12 16:49:30 1999 +0000
+++ b/Doc/perl/python.perl	Mon Jul 12 16:50:09 1999 +0000
@@ -627,6 +627,15 @@
     return "<dt><b>$prefix</b> (<var>$arg_list</var>)\n<dd>" . $_;
 }
 
+sub do_cmd_funclineni{
+    local($_) = @_;
+    my $function_name = next_argument();
+    my $arg_list = next_argument();
+    my $prefix = "<tt class=function>$function_name</tt>";
+
+    return "<dt><b>$prefix</b> (<var>$arg_list</var>)\n<dd>" . $_;
+}
+
 # Change this flag to index the opcode entries.  I don't think it's very
 # useful to index them, since they're only presented to describe the dis
 # module.