[Libguestfs] [PATCH] common/mlstdutils: Add chomp function to remove \n from end of strings.

Pino Toscano ptoscano at redhat.com
Fri Jul 21 14:29:17 UTC 2017


On Friday, 21 July 2017 15:56:17 CEST Richard W.M. Jones wrote:
> This is like the Perl chomp function, it removes a single \n from the
> end of a string if present, else leaves the string alone.
> 
> I believe I found the only (two) places where such a function is used,
> but there may be a few more lurking.
> ---

I did not find more either -- LGTM.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170721/11cc817d/attachment.sig>


More information about the Libguestfs mailing list