add support for one shot Idlers
[zanchey/dispense2.git] / sql-edition / servers / HorizScroll.py
index 69644fb..d27f7dc 100644 (file)
@@ -13,14 +13,14 @@ class HorizScroll:
                if len(self.text) <= 10:
                        return [text]
 
-               if not padding:
+               if padding == None:
                        padding = len(self.text) / 2 + 1
 
                format = "%-" + str(padding) + "." + str(padding) + "s"
                pad = string.replace(format % " "," ",paddingchar)
                padtext = self.text + pad
-               if wraparound:
-                       numiters = len(self.text) - 1
+               if not wraparound:
+                       numiters = len(self.text) - 10
                else:
                        numiters = len(padtext)
 

UCC git Repository :: git.ucc.asn.au