nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] trailing whitespace in replied text


From: David Levine
Subject: Re: [Nmh-workers] trailing whitespace in replied text
Date: Sun, 14 Sep 2014 10:14:14 -0400

Ralph wrote:

> Hi David,
> 
> > Separately, I would like to add a "strip" (or "trim"?) flag to mhl to
> > strip trailing whitespace from non-empty body lines.  It's easy to do
> > and I'd use it.  "nostrip" ("notrim") would remain the default.
> > 
> > There already is a "leftadjust" flag to strip off leading whitespace.
> 
> Consistencies one thing, but rightadjust and bothadjust don't sound
> great.  :-)  `strip' was probably my first thought due to Python which
> has ''.{,l,r}strip.  Bill's suggestion of trim would be fine, but for
> his associating it with Java.  He may as well have thrown PHP in as
> well.  Go has strings.Trim though, so that's alright, though it trims
> any of the given set of runes;  it's TrimSpace that strips Unicode
> space.  Might be worth considering if trim="\"" is a future possibility.
> Otherwise, it's looking trim.

trim is for both leading and trailing space in Java and Go.

RFC 3676 refers to trim in one section and strip in another
(in both cases explicitly referring to trailing).

I like the specificity of {,l,r}strip.  So now I'm leaning
toward rstrip.  But rtrim would be just as specific.

David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]