- if (@draw) {
- my $width = scalar @{ $table->[0] };
- my @imgpal = map {
- [ ref $_ ? @{$_}[1 .. 3] : map {hex} /(..)(..)(..)/ ]
- } map { @{$_} } @{$table};
- for (@draw) {
- print "<tr><td colspan=$width>", img_egapal(\@imgpal, @{$_});
- }
- }
+ if (@draw) {
+ my $width = scalar @{ $table->[0] };
+ my @imgpal = map {
+ [ ref $_ ? @{$_}[1 .. 3] : map {hex} /(..)(..)(..)/ ]
+ } map { @{$_} } @{$table};
+ for (@draw) {
+ print "<tr><td colspan=$width>", img_egapal(\@imgpal, @{$_});
+ }
+ }