termcol: 256-colour greyscale ramp as single table
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 8 Dec 2010 02:01:33 +0000 (03:01 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 15 Dec 2010 21:40:44 +0000 (22:40 +0100)
Separate tables allow theoretical side-by-side floating on very high
resolutions (~2500px with normal font), but in normal cases just causes
an inappropriate gap.

termcol.plp

index 5493c8ae2eef2c0189e4168b05ddce5d19e8a842..c564255dd607b5a979cbcd4cd098bcddc682045a 100644 (file)
@@ -151,11 +151,12 @@ for my $r (0 .. 5) {
 }
 print "\n";
 
+       print '<table>';
 for my $row (0, 12) {
-       print '<table><tr>';
+       print '<tr>';
        print colcell(232+$_, ($_*10 + 8) x 3) for $row .. $row+11;
-       print "</table>\n";
 }
+       print "</table>\n";
 print "\n";
 
 :></div>