nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Poor behavior of %(putaddr)


From: Ken Hornstein
Subject: Re: [Nmh-workers] Poor behavior of %(putaddr)
Date: Sat, 14 Jan 2012 21:50:00 -0500

>mh-format says this:
>
>       When a function or component escape is interpreted and the result
>       will be immediately printed, an optional field width can be
>       specified to print the field in exactly a given number of
>       characters.
>
>Note the text, "optional field width." Thus, I think that if num is
>zero, %(putaddr) should emit its entire contents, subject to any line
>length restrictions in play. I don't think it should be an error if the
>field width is missing/0 as the documentation clearly states that it is
>optional.

The thing is ... that paragraph is talking about the field width when put
into escapes.  Example: %4(size).  What %(putaddr) does is different;
it's using num to make line breaks.  Since this code has been broken
forever, it's always been wrong to put a 0 in there.  The documentation
for %(putaddr) doesn't say setting the width is optional.

--Ken



reply via email to

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