Skip to content

Commit

Permalink
Merge pull request #2630 from cfa/aspell
Browse files Browse the repository at this point in the history
Workaround for aspell backslash escaping issues (#975).
  • Loading branch information
coke committed Mar 11, 2019
2 parents 112a72d + 155ea45 commit a96a573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xt/aspell.t
Expand Up @@ -60,8 +60,8 @@ sub test-it($promises, $file) {
for @files -> $file {
my $input-file = $file.ends-with('.pod6') ?? Pod::Cache.cache-file($file) !! $file;

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

0 comments on commit a96a573

Please sign in to comment.