From 37b72e72c59140c4a6f7f541c716e4b0bc254b08 Mon Sep 17 00:00:00 2001
From: Scott Gasch " + x
-                    elif spaces < indent:
-                        x = "
" + x
-                    indent = spaces
+                    for y in range(0, spaces):
+                        x = x + ""
                     contents = contents + x + "\n"
 
                 individual_lines = contents.split("\n")
@@ -97,7 +96,7 @@ class gkeep_renderer(renderer.debuggable_abstaining_renderer):
                                      (num_lines, max_length))
                     f.write("
\n");
                 else:
                     self.debug_print("%d lines (max=%d chars): one column" %
@@ -123,5 +122,5 @@ class gkeep_renderer(renderer.debuggable_abstaining_renderer):
         return True
 
 # Test
-#x = gkeep_renderer({"Test", 1234})
-#x.periodic_render("Test")
+x = gkeep_renderer({"Test", 1234})
+x.periodic_render("Test")
diff --git a/kiosk.py b/kiosk.py
index fd50910..6003165 100755
--- a/kiosk.py
+++ b/kiosk.py
@@ -191,11 +191,11 @@ def emit_wrapped(f, filename):
         if (remainingMs > 0) {
           var hr = document.getElementById("countdown");
           var width = (remainingMs / (totalMs - 5000)) * 100.0;
-          if (width > 100) {
-            width = 100;
+          if (width <= 100) {
+            hr.style.visibility = "visible";
+            hr.style.width = " ".concat(width, "%%");
+            hr.style.backgroundColor = "maroon";
           }
-          hr.style.width = " ".concat(width, "%%");
-          hr.style.backgroundColor = "maroon";
         } else {
           // Reload unconditionally after 22 sec.
           window.location.reload();
@@ -256,11 +256,11 @@ def emit_wrapped(f, filename):
             ")
                     f.write(" \n")
-                    f.write(" \n")
                             f.write("")
+                    f.write("
")
                     count = 0
                     for x in individual_lines:
                         f.write(x + "\n")
@@ -105,7 +104,7 @@ class gkeep_renderer(renderer.debuggable_abstaining_renderer):
                         if count == num_lines / 2:
                             f.write("
\n")
-                            f.write(" ")
+                            f.write("
")
                     f.write("