projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
template arrays noch leermachen
[kivitendo-erp.git]
/
bin
/
mozilla
/
menu.pl
diff --git
a/bin/mozilla/menu.pl
b/bin/mozilla/menu.pl
index
c51596d
..
85efc5c
100644
(file)
--- a/
bin/mozilla/menu.pl
+++ b/
bin/mozilla/menu.pl
@@
-124,13
+124,16
@@
sub section_menu {
# than 20 chars and store it in an array.
# use this array later instead of the -ed label
@chunks = ();
# than 20 chars and store it in an array.
# use this array later instead of the -ed label
@chunks = ();
- my ($i,$l) =(-1, 20);
+ my ($i,$l) =
(-1, 20);
map {
map {
- $l += length $_;
- if ($l < 20) { $chunks[$i] .= " $_";
- } else { $l =length $_; $chunks[++$i] = $_; }
+ if (($l += length $_) < 20) {
+ $chunks[$i] .= " $_";
+ } else {
+ $l = length $_;
+ $chunks[++$i] = $_;
+ }
} split / /, $label;
} split / /, $label;
- map {
$chunks[$_] =~ s/ / / } 0..$#
chunks;
+ map {
s/ / / } @
chunks;
# end multi line
$label =~ s/ / /g;
# end multi line
$label =~ s/ / /g;