X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a4fdefae72afac5a4ad02eabcc23fe762903ad89..305b277a4f33d11dce040fa2a9a1395000f50d27:/termcol.plp
diff --git a/termcol.plp b/termcol.plp
index fd2bc9b..60afba6 100644
--- a/termcol.plp
+++ b/termcol.plp
@@ -281,14 +281,13 @@ sub coltable_hsv {
$out .= '
';
$out .= colcell(@$_) for map { $_->[$h] } map { @{$_} } @colmap;
}
- $out .= "\n\n";
$offset += $dim ** 3;
$greymap{$offset++} = $_ for @{$greyramp};
- $out .= '';
+ $out .= '';
my $col = 0;
- my $colbreak = keys(%greymap) / 2; # split into 2 rows
+ my $colbreak = scalar map { @$_ } @colmap; # same width as hue rows
for my $num (sort { $greymap{$a} <=> $greymap{$b} } keys %greymap) {
$out .= '' unless $col++ % $colbreak;
$out .= colcell($num, ($greymap{$num}) x 3);