summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-31 17:59:50 +0100
committerYorhel <git@yorhel.nl>2009-01-02 17:02:07 +0100
commit92dd297131690ccb540d97b49e81c84c5830a14f (patch)
tree60382b0ea621a5c7135ebec53e3ce679cb3da1a1 /util
parentce96d68ba80558dd7168d4d3caf6160e4e88f9d0 (diff)
Fixed skin generator bug with \r characters in the conf file
Diffstat (limited to 'util')
-rwxr-xr-xutil/skingen.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/skingen.pl b/util/skingen.pl
index 9c06b077..40035a5c 100755
--- a/util/skingen.pl
+++ b/util/skingen.pl
@@ -27,6 +27,7 @@ sub readskin { # skin name
open my $F, '<', $ROOT.'/static/s/'.$name.'/conf' or die $!;
while(<$F>) {
chomp;
+ s/\r//g;
s{[\t\s]*//.+$}{};
next if !/^([a-z0-9]+)[\t\s]+(.+)$/;
$o{$1} = $2;