Strip trailing whitespace when parsing .desktop files.
SVN revision: 41590
This commit is contained in:
parent
9b388ef28a
commit
cd7bbdba20
|
@ -196,6 +196,7 @@ sub ProcessFile {
|
||||||
|
|
||||||
open(FI,$f) or return;
|
open(FI,$f) or return;
|
||||||
while (<FI>) {
|
while (<FI>) {
|
||||||
|
s/\s+$//;
|
||||||
if (/^Name=(.*)$/) {
|
if (/^Name=(.*)$/) {
|
||||||
$Name = $1;
|
$Name = $1;
|
||||||
} elsif ($loc1 && /^Name\[$loc1\]=(.*)$/) {
|
} elsif ($loc1 && /^Name\[$loc1\]=(.*)$/) {
|
||||||
|
|
Loading…
Reference in New Issue