changeset 190:6b0587a217d3

nicer printing for --list-factories
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 02 Feb 2011 09:27:38 -0800
parents cb9ad0b04140
children 7789fe9f8c30
files autobot/template.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/template.py	Wed Feb 02 09:11:28 2011 -0800
+++ b/autobot/template.py	Wed Feb 02 09:27:38 2011 -0800
@@ -24,12 +24,12 @@
     """print factory descriptions"""
 
     buffer = StringIO()
-    print >> buffer, 'Factories:\n'
+    print >> buffer, 'Factories::\n'
     for key in sorted(factories.keys()):
         print >> buffer, '%s:' % key
-        print >> buffer, descriptions[key]
+        print >> buffer, descriptions[key].rstrip()
         print >> buffer
-    return buffer.getvalue()
+    return buffer.getvalue().strip()
 
 
 class AutobotMasterTemplate(MakeItSoTemplate):