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

Skip to content

Commit b02f0df

Browse files
committed
- Committing the modified signature lines I've been using for a long
time in http://www.python.org/dev/doc/. There have been no bug reports on these for a long time now. - Remove local "use" statement that duplicates a top-level "use".
1 parent bad4607 commit b02f0df

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Doc/perl/python.perl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,10 @@ ($$$)
914914
$idx =~ s/\(\)//; # ???? - why both of these?
915915
$args =~ s/(\s|\*)([a-z_][a-z_0-9]*),/\1<var>\2<\/var>,/g;
916916
$args =~ s/(\s|\*)([a-z_][a-z_0-9]*)$/\1<var>\2<\/var>/s;
917-
return "$type <b>$idx</b>(<var>$args</var>)";
917+
return ('<table cellpadding="0" cellspacing="0"><tr valign="baseline">'
918+
. "<td><nobr>$type\&nbsp;<b>$idx</b>(</nobr></td>"
919+
. "<td>$args)</td>"
920+
. '</tr></table>');
918921
}
919922
sub do_cmd_cfuncline{
920923
local($_) = @_;
@@ -1021,7 +1024,9 @@ ($)
10211024
sub funcline_helper($$$){
10221025
my($first, $idxitem, $arglist) = @_;
10231026
return (($first ? '<dl>' : '')
1024-
. "<dt><b>$idxitem</b>(<var>$arglist</var>)\n<dd>");
1027+
. '<dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">'
1028+
. "\n <td><nobr><b>$idxitem</b>(</nobr></td>"
1029+
. "\n <td><var>$arglist</var>)</td></tr></table>\n<dd>");
10251030
}
10261031

10271032
sub do_env_funcdesc{
@@ -2007,7 +2012,6 @@ ($)
20072012
# We've seen this one before; re-use the same output file.
20082013
return $VerbatimFiles{$file};
20092014
}
2010-
use File::Basename;
20112015
my $srcname, $srcdir, $srcext;
20122016
($srcname, $srcdir, $srcext) = fileparse($file, '\..*');
20132017
$filename = "$srcname.txt";

0 commit comments

Comments
 (0)