From 241551c16c5222914fc8904889e08e15a40ada9d Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 11 Aug 2000 20:04:19 +0000 Subject: do_env_cfuncdesc(): Push as much of the generated HTML into one place as possible for better readability. Revise a comment. --- Doc/perl/python.perl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index b1eb008..bacc8cc 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 -- cgit v0.12