From 0c2beda3f7e08d4d9ef9dd2bd472df6cdd010091 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Fri, 21 Jan 2011 09:30:23 -0500 Subject: [PATCH] Fix crash when displaying values composed of white-space chars only in CLI. Ticket #825 --- ipalib/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipalib/cli.py b/ipalib/cli.py index 2cd3a97c3..2d219b71b 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -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)