mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 13:01:11 -05:00
Updated from scripts.irssi.org
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2993 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
902280eca7
commit
cd3ff41f3e
@ -6,7 +6,7 @@
|
|||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
use vars qw($VERSION %IRSSI);
|
use vars qw($VERSION %IRSSI);
|
||||||
$VERSION = '2002110401';
|
$VERSION = '2002111001';
|
||||||
%IRSSI = (
|
%IRSSI = (
|
||||||
authors => 'Stefan \'tommie\' Tomanek',
|
authors => 'Stefan \'tommie\' Tomanek',
|
||||||
contact => 'stefan@pico.ruhr.de',
|
contact => 'stefan@pico.ruhr.de',
|
||||||
@ -434,14 +434,20 @@ sub array2table {
|
|||||||
my @width;
|
my @width;
|
||||||
foreach my $line (@array) {
|
foreach my $line (@array) {
|
||||||
for (0..scalar(@$line)) {
|
for (0..scalar(@$line)) {
|
||||||
$width[$_] = length($line->[$_]) if $width[$_]<length($line->[$_]);
|
my $l = $line->[$_];
|
||||||
|
$l =~ s/%[^%]//g;
|
||||||
|
$l =~ s/%%/%/g;
|
||||||
|
$width[$_] = length($l) if $width[$_]<length($l);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
my $text;
|
my $text;
|
||||||
foreach my $line (@array) {
|
foreach my $line (@array) {
|
||||||
for (0..scalar(@$line)) {
|
for (0..scalar(@$line)) {
|
||||||
|
my $l = $line->[$_];
|
||||||
$text .= $line->[$_];
|
$text .= $line->[$_];
|
||||||
$text .= " "x($width[$_]-length($line->[$_])+1);
|
$l =~ s/%[^%]//g;
|
||||||
|
$l =~ s/%%/%/g;
|
||||||
|
$text .= " "x($width[$_]-length($l)+1);
|
||||||
}
|
}
|
||||||
$text .= "\n";
|
$text .= "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user