git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f125d4
)
termcol: 256-colour greyscale ramp as single table
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 8 Dec 2010 02:01:33 +0000
(
03:01
+0100)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/termcol.plp
b/termcol.plp
index 5493c8ae2eef2c0189e4168b05ddce5d19e8a842..c564255dd607b5a979cbcd4cd098bcddc682045a 100644
(file)
--- a/
termcol.plp
+++ b/
termcol.plp
@@
-151,11
+151,12
@@
for my $r (0 .. 5) {
}
print "\n";
}
print "\n";
+ print '<table>';
for my $row (0, 12) {
for my $row (0, 12) {
- print '<t
able><t
r>';
+ print '<tr>';
print colcell(232+$_, ($_*10 + 8) x 3) for $row .. $row+11;
print colcell(232+$_, ($_*10 + 8) x 3) for $row .. $row+11;
- print "</table>\n";
}
}
+ print "</table>\n";
print "\n";
:></div>
print "\n";
:></div>