Skip to content

Commit a96a573

Browse files
authored
Merge pull request #2630 from cfa/aspell
Workaround for aspell backslash escaping issues (#975).
2 parents 112a72d + 155ea45 commit a96a573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xt/aspell.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ sub test-it($promises, $file) {
6060
for @files -> $file {
6161
my $input-file = $file.ends-with('.pod6') ?? Pod::Cache.cache-file($file) !! $file;
6262

63-
my $fixer = Proc::Async.new('awk', 'BEGIN {print "!"} {gsub("\\\\","",$0); print "^" $0}', $input-file);
64-
my $proc = Proc::Async.new(<aspell -a -l en_US --ignore-case --extra-dicts=./xt/aspell.pws>);
63+
my $fixer = Proc::Async.new(«perl -pne BEGIN {print "!\n"} s/\S\K\\[tn]/ /g; s/^/^/ $input-file»);
64+
my $proc = Proc::Async.new(<aspell -a -l en_US --ignore-case --extra-dicts=./xt/aspell.pws --mode=url>);
6565
$proc.bind-stdin: $fixer.stdout: :bin;
6666
%output{$file}="";
6767
$proc.stdout.tap(-> $buf { %output{$file} = %output{$file} ~ $buf });

0 commit comments

Comments
 (0)