Alon Bar-Lev has uploaded a new change for review. Change subject: dialog: human: accept empty note text ......................................................................
dialog: human: accept empty note text Change-Id: I739d19094423e694b738ddb8c99eb13c7718fe85 Signed-off-by: Alon Bar-Lev <[email protected]> --- M ChangeLog M src/plugins/otopi/dialog/human.py 2 files changed, 7 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/72/13672/1 diff --git a/ChangeLog b/ChangeLog index bf990e7..58611b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ ????-??-?? - Version 1.0.2 + * dialog: fix handling of empty string notes. + 2013-03-31 - Version 1.0.1 * core: supprot non unicode command output. diff --git a/src/plugins/otopi/dialog/human.py b/src/plugins/otopi/dialog/human.py index 4089b98..1e1e963 100644 --- a/src/plugins/otopi/dialog/human.py +++ b/src/plugins/otopi/dialog/human.py @@ -134,10 +134,11 @@ text = str(text) lines = text.splitlines() - for line in lines[:-1]: - printline(line) - printline(lines[-1], newline=not prompt) - self._flush() + if len(lines) > 0: + for line in lines[:-1]: + printline(line) + printline(lines[-1], newline=not prompt) + self._flush() def queryString( self, -- To view, visit http://gerrit.ovirt.org/13672 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I739d19094423e694b738ddb8c99eb13c7718fe85 Gerrit-PatchSet: 1 Gerrit-Project: otopi Gerrit-Branch: otopi-1.0 Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
