VMM/cli/subcommands: Added 'missing' newline below domain notes.
authorPascal Volk <user@localhost.localdomain.org>
Thu, 23 Aug 2012 21:27:33 +0000
changeset 593 3dc1764c23d2
parent 592 ef384bc8fde6
child 594 cdbe200c0ecc
VMM/cli/subcommands: Added 'missing' newline below domain notes. This patch contains also a small code cleanup and PEP8-fix.
VirtualMailManager/cli/subcommands.py
--- a/VirtualMailManager/cli/subcommands.py	Sun Aug 19 11:47:21 2012 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Thu Aug 23 21:27:33 2012 +0000
@@ -943,9 +943,10 @@
         else:
             w_std(u'\t%s: %s' % (key.title().ljust(17, u'.'), info[key]))
     print
-    note = info.get('note', None)
-    if note is not None:
-        _print_note(note)
+    note = info.get('note')
+    if note:
+        _print_note(note + '\n')
+
 
 def _print_note(note):
     msg = _(u'Note')