[Yum-devel] [PATCH] Kill blank lines in search output

James Antill jantill at redhat.com
Thu Oct 18 20:52:54 UTC 2007


On Thu, 2007-10-18 at 15:27 -0400, seth vidal wrote:
> On Thu, 2007-10-18 at 13:41 -0400, James Antill wrote:
> > In current search results for some packages the summary line has a '\n'
> > at the end, so you get blank lines. Attached is a simple patch to fix
> > that up.
> > 
> >  I've attached it and it can be merged from:
> > 
> > git pull http://people.redhat.com/jantill/gits/yum search-empty-lines
> 
> couldn't it just be:
> summary = summary.replace('\n','')
> 
> summary's should never be multiline anyway.

 Sure, that's fine by me. I've also moved the change to a more generic
location.

-- 
James Antill <jantill at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-search-empty-lines.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20071018/c48eba7a/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20071018/c48eba7a/attachment.pgp 


More information about the Yum-devel mailing list