[RFC] Condense help listings
Martin Pool
mbp at canonical.com
Mon Sep 25 05:06:34 BST 2006
On 24 Sep 2006, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
> -----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.
You're right, I always half expect writelines will add them.
--
Martin
More information about the bazaar
mailing list