From: Fred Drake Date: Fri, 11 Aug 2000 20:04:19 +0000 (+0000) Subject: do_env_cfuncdesc(): Push as much of the generated HTML into one place X-Git-Tag: v2.0b1~505 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=241551c16c5222914fc8904889e08e15a40ada9d;p=python do_env_cfuncdesc(): Push as much of the generated HTML into one place as possible for better readability. Revise a comment. --- diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index b1eb008cbe..bacc8cc708 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -644,23 +644,23 @@ sub do_env_cfuncdesc{ my $idx = make_str_index_entry( "$function_name()" . get_indexsubitem()); $idx =~ s/ \(.*\)//; - $idx =~ s/\(\)//; # ???? + $idx =~ s/\(\)//; # ???? - why both of these? my $result_rc = get_refcount($function_name, ''); my $rcinfo = ''; if ($result_rc eq '+1') { - $rcinfo = 'Return value:' - . "\n New reference."; + $rcinfo = 'New reference'; } elsif ($result_rc eq '0') { - $rcinfo = 'Return value:' - . "\n Borrowed reference."; + $rcinfo = 'Borrowed reference'; } elsif ($result_rc eq 'null') { - $rcinfo = 'Return value:' - . "\n Always NULL."; + $rcinfo = 'Always NULL'; } if ($rcinfo ne '') { - $rcinfo = "\n
\n $rcinfo\n
"; + $rcinfo = ( "\n
" + . "\n Return value:" + . "\n $rcinfo." + . "\n
"); } return "
$return_type $idx ($arg_list)\n
" . $rcinfo