diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-06 15:11:48 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-06 15:11:48 -0400 |
commit | 10aa7f1fd3e3e133499974398a757876e34d430f (patch) | |
tree | 3d29032547eca46d6b416d26281e387dd64f9adf | |
parent | e2ef15ca99a79ac02457ddf18ffbf9c5c0720ee9 (diff) | |
download | python-termcast-server-10aa7f1fd3e3e133499974398a757876e34d430f.tar.gz python-termcast-server-10aa7f1fd3e3e133499974398a757876e34d430f.zip |
fix some display issues
-rw-r--r-- | termcast_server/index.html | 17 |
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 += " "; + } + else { + term += cell.contents; + } + term += '</td>'; }); term += '</td>'; }); |