Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca675e4

Browse files
committed
do_cmd_funcline(): Remove some bogus generated stuff from the output
(some text was only intended for the index).
1 parent 3d815bd commit ca675e4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/perl/python.perl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,11 @@ sub do_cmd_funcline{
589589
local($_) = @_;
590590
my $function_name = next_argument();
591591
my $arg_list = next_argument();
592-
my $idx = make_str_index_entry("<tt class=function>$function_name()</tt>"
593-
. get_indexsubitem());
594-
$idx =~ s/\(\)//;
595-
return "<dt><b>$idx</b> (<var>$arg_list</var>)\n<dd>" . $_;
592+
my $prefix = "<tt class=function>$function_name()</tt>";
593+
my $idx = make_str_index_entry($prefix . get_indexsubitem());
594+
$prefix =~ s/\(\)//;
595+
596+
return "<dt><b>$prefix</b> (<var>$arg_list</var>)\n<dd>" . $_;
596597
}
597598

598599
# Change this flag to index the opcode entries. I don't think it's very

0 commit comments

Comments
 (0)