# HG changeset patch # User Jeff Hammel # Date 1296667658 28800 # Node ID 6b0587a217d31df0db7620c08985a6dbde548cb3 # Parent cb9ad0b041401dca9bf77a4bc4ad573769027108 nicer printing for --list-factories diff -r cb9ad0b04140 -r 6b0587a217d3 autobot/template.py --- 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):