diff autobot/template.py @ 190:6b0587a217d3

nicer printing for --list-factories
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 02 Feb 2011 09:27:38 -0800
parents 5e1b450341a2
children 1a50b63c73a3
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):