From 4837fa3a540c13bfbc734924c5776295734289c6 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 18 Jun 2002 18:30:28 +0000 Subject: \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 , 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. --- Doc/perl/python.perl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 2eb1d6f..3fc7454 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -808,6 +808,7 @@ sub do_cmd_production{ sub do_cmd_productioncont{ local($_) = @_; my $defn = next_argument(); + $defn =~ s/^( +)/' ' x length $1/e; return ("\n" . "  \n" . "  \n" @@ -911,6 +912,8 @@ sub cfuncline_helper($$$){ "$name()" . get_indexsubitem()); $idx =~ s/ \(.*\)//; $idx =~ s/\(\)//; # ???? - why both of these? + $args =~ s/(\s|\*)([a-z_][a-z_0-9]*),/\1\2<\/var>,/g; + $args =~ s/(\s|\*)([a-z_][a-z_0-9]*)$/\1\2<\/var>/s; return "$type $idx($args)"; } sub do_cmd_cfuncline{ -- cgit v0.12