]> granicus.if.org Git - python/commitdiff
do_cmd_funcline(): Remove some bogus generated stuff from the output
authorFred Drake <fdrake@acm.org>
Wed, 21 Apr 1999 15:58:58 +0000 (15:58 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 21 Apr 1999 15:58:58 +0000 (15:58 +0000)
    (some text was only intended for the index).

Doc/perl/python.perl

index abd17e86f5c908cfd150542937fd3f7818a637c0..eb6dfdf4e2171cf67b565d6214d01b57acaaabf9 100644 (file)
@@ -589,10 +589,11 @@ sub do_cmd_funcline{
     local($_) = @_;
     my $function_name = next_argument();
     my $arg_list = next_argument();
-    my $idx = make_str_index_entry("<tt class=function>$function_name()</tt>"
-                                  . get_indexsubitem());
-    $idx =~ s/\(\)//;
-    return "<dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>" . $_;
+    my $prefix = "<tt class=function>$function_name()</tt>";
+    my $idx = make_str_index_entry($prefix . get_indexsubitem());
+    $prefix =~ s/\(\)//;
+
+    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