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
+ numiters = len(self.text) - 10
else:
numiters = len(padtext)