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:
2eeaff5
)
termcol: monospaced terminal samples
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 8 Dec 2010 02:01:25 +0000
(
03:01
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 15 Dec 2010 21:40:44 +0000
(22:40 +0100)
Hexadecimal values as <code> to force equal widths.
termcol.plp
patch
|
blob
|
history
diff --git
a/termcol.plp
b/termcol.plp
index 90f8a7cf200e95df870bc6ef1d996ea9e6175cde..5493c8ae2eef2c0189e4168b05ddce5d19e8a842 100644
(file)
--- a/
termcol.plp
+++ b/
termcol.plp
@@
-35,7
+35,7
@@
sub colcell {
"background:$css; color:$inverse; padding:0 1ex",
$name,
);
- $out .= sprintf '<td style="%s">
%s
', "background:$_; color:$css", $minhex
+ $out .= sprintf '<td style="%s">
<code>%s</code>
', "background:$_; color:$css", $minhex
for @$sample;
return "$out\n";
}