\productioncont: Replace leading spaces with   so that it's

possible to control the indentation of continuation lines.

cfuncline_helper():  Only mark the argument names are <var>, not the
    whole argument list.  This leaves the argument types in the same
    font as the return type.  Based on a casual suggestion from
    Guido.
This commit is contained in:
Fred Drake 2002-06-18 18:30:28 +00:00
parent f6e902717e
commit 4837fa3a54
1 changed files with 3 additions and 0 deletions

View File

@ -808,6 +808,7 @@ sub do_cmd_production{
sub do_cmd_productioncont{ sub do_cmd_productioncont{
local($_) = @_; local($_) = @_;
my $defn = next_argument(); my $defn = next_argument();
$defn =~ s/^( +)/'&nbsp;' x length $1/e;
return ("<tr valign=\"baseline\">\n" return ("<tr valign=\"baseline\">\n"
. " <td>&nbsp;</td>\n" . " <td>&nbsp;</td>\n"
. " <td>&nbsp;</td>\n" . " <td>&nbsp;</td>\n"
@ -911,6 +912,8 @@ sub cfuncline_helper($$$){
"<tt class=\"cfunction\">$name()</tt>" . get_indexsubitem()); "<tt class=\"cfunction\">$name()</tt>" . get_indexsubitem());
$idx =~ s/ \(.*\)//; $idx =~ s/ \(.*\)//;
$idx =~ s/\(\)//; # ???? - why both of these? $idx =~ s/\(\)//; # ???? - why both of these?
$args =~ s/(\s|\*)([a-z_][a-z_0-9]*),/\1<var>\2<\/var>,/g;
$args =~ s/(\s|\*)([a-z_][a-z_0-9]*)$/\1<var>\2<\/var>/s;
return "$type <b>$idx</b>(<var>$args</var>)"; return "$type <b>$idx</b>(<var>$args</var>)";
} }
sub do_cmd_cfuncline{ sub do_cmd_cfuncline{