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

seth vidal skvidal at fedoraproject.org
Thu Oct 18 19:27:31 UTC 2007


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.

-sv





More information about the Yum-devel mailing list