Skip to content

Commit 4d472ac

Browse files
committed
Fix replacing spaces with NBSP between line breaks in util/perl-nbsp.p6
1 parent b3480e1 commit 4d472ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/perl-nbsp.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ multi sub replace-spaces(IO::Path $file) {
3535

3636
my Str $out-line = $in-line.clone;
3737
if $split {
38-
$out-line ~~ s/ ^ \x[0020]? <?before 6 | 5> /\x[00A0]/;
38+
$out-line ~~ s/ ^ \x[0020]? ( 6 | 5 ) /\x[00A0]$0/;
3939
$split = False;
4040
} else {
4141
$out-line ~~ s/ 'Perl' [ \x[0020]+ | \x[00A0] ]? $ /Perl/;

0 commit comments

Comments
 (0)