[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ia64
Subject: Re: [Linux-ia64] Re: trailing white space...
From: Chris Wedgwood <cw () f00f ! org>
Date: 2003-06-02 23:16:20
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic