1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Updated from scripts.irssi.org

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3059 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-12-11 20:40:48 +00:00 committed by cras
parent e0c66e3122
commit 61864a563f

View File

@ -437,7 +437,7 @@ sub array2table {
my (@array) = @_;
my @width;
foreach my $line (@array) {
for (0..scalar(@$line)) {
for (0..scalar(@$line)-1) {
my $l = $line->[$_];
$l =~ s/%[^%]//g;
$l =~ s/%%/%/g;
@ -446,12 +446,12 @@ sub array2table {
}
my $text;
foreach my $line (@array) {
for (0..scalar(@$line)) {
for (0..scalar(@$line)-1) {
my $l = $line->[$_];
$text .= $line->[$_];
$l =~ s/%[^%]//g;
$l =~ s/%%/%/g;
$text .= " "x($width[$_]-length($l)+1);
$text .= " "x($width[$_]-length($l)+1) unless ($_ == scalar(@$line)-1);
}
$text .= "\n";
}