nmh-workers
[Top] [All Lists]

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

2014-09-14 00:04:01
David Levine <levinedl(_at_)acm(_dot_)org> writes:

Ralph wrote:

Hi David,

Yeah, I do that a lot because body:component="> " turns a blank line
in replied text into one with a trailing space.

Yes, that's really icky.  Would be nice if mhl supported some kind of
`strip' to prune those off afterwards.

I found where to do this in the code, that was the hard
part.

Is there any need to keep the trailing whitespace of the
component with blank text lines?  I'm inclined to always
strip it off.  E.g., "> \n" would become ">\n".

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.

I'd go with "trim."

http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#trim()

-- 
Bill Wohler <wohler(_at_)newt(_dot_)com> aka 
<Bill(_dot_)Wohler(_at_)nasa(_dot_)gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>