All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wedgwood <cw@f00f.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Re: trailing white space...
Date: Mon, 02 Jun 2003 23:16:20 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590723706119@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590723706105@msgid-missing>

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


      parent reply	other threads:[~2003-06-02 23:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-31  6:18 [Linux-ia64] Re: trailing white space David Mosberger
2003-05-31  6:41 ` Sam Ravnborg
2003-06-02 18:23 ` Wichmann, Mats D
2003-06-02 23:16 ` Chris Wedgwood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590723706119@msgid-missing \
    --to=cw@f00f.org \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.