From 5a7adba1367ee8535be060540b8b7f889b3da124 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 29 Jan 2007 14:24:48 +0000 Subject: [PATCH] =?utf8?q?CSS-Men=C3=BC:=20keinen=20Zeilenumbruch=20mehr?= =?utf8?q?=20erzwingen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/menuv3.pl | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/bin/mozilla/menuv3.pl b/bin/mozilla/menuv3.pl index ac8fe7b5c..18ab33433 100644 --- a/bin/mozilla/menuv3.pl +++ b/bin/mozilla/menuv3.pl @@ -140,29 +140,6 @@ sub acc_menu { return print_menu($menu); } -sub my_length { - my ($s) = @_; - my $len = 0; - my $i; - my $skip = 0; - - for ($i = 0; $i < length($s); $i++) { - my $c = substr($s, $i, 1); - if ($skip && ($c eq ";")) { - $skip = 0; - } elsif ($skip) { - next; - } elsif ($c eq "&") { - $skip = 1; - $len++; - } else { - $len++; - } - } - - return $len; -} - sub print_menu { my ($menu, $parent, $depth) = @_; my $html; @@ -183,8 +160,6 @@ sub print_menu { my $menu_title = $locale->text($item); my $menu_text = $menu_title; - $menu_text =~ s/ /
/ if ($parent && (my_length($menu_text) >= 17)); - my $target = "main_window"; $target = $menu_item->{"target"} if ($menu_item->{"target"}); -- 2.20.1