Re: [Linux-ia64] Re: trailing white space...

From: Chris Wedgwood <cw_at_f00f.org>
Date: 2003-06-03 09:16:20
On Mon, Jun 02, 2003 at 11:23:51AM -0700, Wichmann, Mats D wrote:

> but in either case this just shows you
> the stuff, it doesn't remove it.

I think that's how it should be... removing it on existing files w/o
care is bad.

> If it's a persistent problem, a simple
> filter is easier to use.

For new files sure, for existing files I would rather people ensure
hunsk they edit and linees they edit contain no/few whitespace
changes.


> I find Python's rstrip string method useful for this, i.e. if you
> have a line of text in 'line',
> 
>     line = line.rstrip()
> 
> saves a new copy of the line with the
> trailing whitespace removed.

What's wrong with sed?


  --cw
Received on Mon Jun 02 16:14:50 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:15 EST