bzr help CMD not printing a terminating newline

John A Meinel john at arbash-meinel.com
Mon Jun 6 16:28:04 BST 2005


duchier at ps.uni-sb.de wrote:
> John A Meinel <john at arbash-meinel.com> writes:
> 
> 
>>Actually, what's interesting is that it seems to work correctly if the
>>command in question takes any options.
> 
> 
> That's because the processing of option-related help starts with:
> 
> 	outfile.write('\noptions:\n')
> 
> notice the initial newline :-)
> 
> --Denys
> 

Sure. The question is, do we want an extra space between options and the
previous text or not. If the answer is no, then we need to be careful
about when we add an extra newline.

Probably we should just always add a newline to the original text, and
then decide whether options should have the extra newline or not. I just
wanted to bring up that side of the issue.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050606/e361ccf4/attachment.pgp 


More information about the bazaar mailing list