diff --git a/lib/core/dump.py b/lib/core/dump.py index e339b81f3..d53e206a1 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -159,7 +159,7 @@ class Dump: if isinstance(table, (list, tuple, set)): table = table[0] - maxlength = max(maxlength, len(str(table))) + maxlength = max(maxlength, len(getUnicode(table))) lines = "-" * (int(maxlength) + 2) @@ -179,7 +179,7 @@ class Dump: if isinstance(table, (list, tuple, set)): table = table[0] - blank = " " * (maxlength - len(str(table))) + blank = " " * (maxlength - len(getUnicode(table))) self.__write("| %s%s |" % (table, blank)) self.__write("+%s+\n" % lines)