minor update

This commit is contained in:
Miroslav Stampar 2011-03-24 17:18:03 +00:00
parent f3858a5fcf
commit c0cc5d1dad

View File

@ -159,7 +159,7 @@ class Dump:
if isinstance(table, (list, tuple, set)): if isinstance(table, (list, tuple, set)):
table = table[0] table = table[0]
maxlength = max(maxlength, len(str(table))) maxlength = max(maxlength, len(getUnicode(table)))
lines = "-" * (int(maxlength) + 2) lines = "-" * (int(maxlength) + 2)
@ -179,7 +179,7 @@ class Dump:
if isinstance(table, (list, tuple, set)): if isinstance(table, (list, tuple, set)):
table = table[0] table = table[0]
blank = " " * (maxlength - len(str(table))) blank = " " * (maxlength - len(getUnicode(table)))
self.__write("| %s%s |" % (table, blank)) self.__write("| %s%s |" % (table, blank))
self.__write("+%s+\n" % lines) self.__write("+%s+\n" % lines)