[RFC] Condense help listings

Aaron Bentley aaron.bentley at utoronto.ca
Mon Sep 25 04:38:14 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
>>          for line in lines:
>> -            print >> outfile, line
>> -        
>> +            outfile.write(line + '\n')
> 
> I would be inclined to add a '\n' to helpstring, then just
> outfile.writelines(lines)

Since textwrap.wrap doesn't add newlines, that would produce weird
formatting for multiline descriptions.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFF08l0F+nu1YWqI0RAi4mAKCBpVMEyR051zdzzFxAny5+JyZZtACgg2r7
WVT0oB8lfe+ifQuUwo41nSU=
=4u+z
-----END PGP SIGNATURE-----




More information about the bazaar mailing list