1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-16 23:43:32 +01:00

Remove trailing whitespace.

Also, the script is a one-liner, stolen from [1]:

ack --print0 -l '[ \t]+$' | xargs -0 -n1 perl -pi -e 's/[ \t]+$//'

[1]
https://stackoverflow.com/questions/149057/how-to-remove-trailing-whitespace-of-all-files-recursively
This commit is contained in:
Doug Torrance
2020-04-09 00:00:14 -04:00
committed by Carlos R. Mafra
parent a17d131da3
commit 54a24ab6f7
109 changed files with 951 additions and 951 deletions

View File

@@ -134,7 +134,7 @@ perl - $T <<-'EOF' > $T-p
}
@foo2=();
for (@foo) {
s/^(\s*)"([^"]*)"\s\s*OPEN_MENU\s\s*(.*)$/\1($v\n\1"\2",$v\n\1OPEN_MENU,$v\n\1"\3"$v\n\1),/;
push @foo2,split "\n";
}
@@ -152,7 +152,7 @@ s/^(\s*)"([^"]*)"\s\s*OPEN_MENU\s\s*(.*)$/\1($v\n\1"\2",$v\n\1OPEN_MENU,$v\n\1"\
}
@foo=();
for (@foo2) {
s/^(\s*)([^
s/^(\s*)([^
]*)\s\s*OPEN_MENU\s\s*(.*)$/\1($v\n\1"\2",$v\n\1OPEN_MENU,$v\n\1"\3"$v\n\1),/;
push @foo,split "\n";
}