]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Back-port part of 1.128 from the trunk:
authorFred Drake <fdrake@acm.org>
Mon, 7 Oct 2002 16:18:57 +0000 (16:18 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 7 Oct 2002 16:18:57 +0000 (16:18 +0000)
\productioncont:  Replace leading spaces with &nbsp; so that it's
    possible to control the indentation of continuation lines.

Doc/perl/python.perl

index f162685dd606873ff486e123d95f7236e1361b9b..841b1097a5ed5770ad231e1cad77c16b2a2e65fa 100644 (file)
@@ -808,6 +808,7 @@ sub do_cmd_production{
 sub do_cmd_productioncont{
     local($_) = @_;
     my $defn = next_argument();
+    $defn =~ s/^( +)/'&nbsp;' x length $1/e;
     return ("<tr valign=\"baseline\">\n"
             . "    <td>&nbsp;</td>\n"
             . "    <td>&nbsp;</td>\n"