Fix crash when displaying values composed of white-space chars only in CLI.

Ticket #825
This commit is contained in:
Pavel Zuna 2011-01-21 09:30:23 -05:00 committed by Rob Crittenden
parent 3e3cc55d24
commit 0c2beda3f7

View File

@ -302,6 +302,8 @@ class textui(backend.Backend):
text = textwrap.wrap(
text, line_len, break_long_words=False
)
if len(text) == 0:
text = [u'']
else:
text = [text]
self.print_indented(format % (attr, text[0]), indent)