aboutsummaryrefslogtreecommitdiffstats
path: root/termcast_server
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-06 15:11:48 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-06 15:11:48 -0400
commit10aa7f1fd3e3e133499974398a757876e34d430f (patch)
tree3d29032547eca46d6b416d26281e387dd64f9adf /termcast_server
parente2ef15ca99a79ac02457ddf18ffbf9c5c0720ee9 (diff)
downloadpython-termcast-server-10aa7f1fd3e3e133499974398a757876e34d430f.tar.gz
python-termcast-server-10aa7f1fd3e3e133499974398a757876e34d430f.zip
fix some display issues
Diffstat (limited to 'termcast_server')
-rw-r--r--termcast_server/index.html17
1 files changed, 14 insertions, 3 deletions
diff --git a/termcast_server/index.html b/termcast_server/index.html
index e12e578..459d9c1 100644
--- a/termcast_server/index.html
+++ b/termcast_server/index.html
@@ -11,8 +11,12 @@
font-family: monospace;
}
-.term .td {
- width: 1em;
+.term table {
+ border-collapse: collapse;
+}
+
+.term td {
+ padding: 0px;
}
</style>
<script>
@@ -65,7 +69,14 @@ socket.onmessage = function (e) {
}
term += '"';
}
- term += '>' + cell.contents + '</td>';
+ term += '>';
+ if (cell.contents == " ") {
+ term += "&nbsp;";
+ }
+ else {
+ term += cell.contents;
+ }
+ term += '</td>';
});
term += '</td>';
});