projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Link zur Doku für Variablen in wiederkehrenden Rechnungen in Auftragsformular anzeigen
[kivitendo-erp.git]
/
scripts
/
image_maps.pl
diff --git
a/scripts/image_maps.pl
b/scripts/image_maps.pl
index
0329481
..
f025340
100755
(executable)
--- a/
scripts/image_maps.pl
+++ b/
scripts/image_maps.pl
@@
-83,10
+83,10
@@
for (@gd_images) {
my $name = fileparse($_->{filename}, ".png");
# the full grammar for valid css class names is completely bonkers (to put it mildly).
my $name = fileparse($_->{filename}, ".png");
# the full grammar for valid css class names is completely bonkers (to put it mildly).
- # so instead of trying to punch filenames into those class names, we'll
just reduce them to a nice minimal set of
- #
a-z _ -
+ # so instead of trying to punch filenames into those class names, we'll
+ #
just reduce them to a nice minimal set of lower case /[a-z0-9_-]*/
$name = lc $name;
$name = lc $name;
- $name =~ s/[^a-z_-]/-/g;
+ $name =~ s/[^a-z
0-9
_-]/-/g;
print $file ".$class_for_map.$name { background-position: -$_->{h_offset}px 0px; }\n";
}
}
print $file ".$class_for_map.$name { background-position: -$_->{h_offset}px 0px; }\n";
}
}