This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
feature.pl: Tweak comment
[perl5.git] / regen / regen_lib.pl
index 4715236..dcee0a6 100644 (file)
@@ -129,6 +129,7 @@ EOM
        ? wrap('# ', '# ', $raw) . "\n" : wrap('/* ', $style, $raw) . " */\n\n";
     $cooked =~ tr/\0/ /; # Don't break Larry's name etc
     $cooked =~ s/ +$//mg; # Remove all trailing spaces
+    $cooked =~ s! \*/\n!$args{quote}!s if $args{quote};
     return $cooked;
 }