Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
watch-my-terminal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a5f32e3
)
ui: html-encode white text too
author
Jason Woofenden
<jason@jasonwoof.com>
Fri, 1 Feb 2013 05:22:24 +0000
(
00:22
-0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Fri, 1 Feb 2013 05:22:24 +0000
(
00:22
-0500)
client.coffee
patch
|
blob
|
history
diff --git
a/client.coffee
b/client.coffee
index
e5615af
..
282b742
100644
(file)
--- a/
client.coffee
+++ b/
client.coffee
@@
-77,8
+77,8
@@
$ ->
return 'background-' + color_to_css(i ^ 0x080000)
stylize = (txt, style) ->
- if (txt.length == 0 or style == 0x000007)
- return txt
+ return '' if txt.length is 0
+ return $('<span>').text txt if style is 0x000007
css = ''
css += 'font-weight: bold; ' if style & 0x010000
css += 'text-decoration: underline; ' if style & 0x020000