Re: wrapmargin is a bad way to solve `smart' wrapping
On Sun, Oct 05, 2003 at 03:43:34AM +0200, Han Boetes wrote:
... sundry discussion zapped ...
> I think that is not a solution at all. My mutt config looks good at any
> terminalsize in columns from 80 until 160 and the only thing that's
> annoying is long lines that are unwrapped.
Having thought on the issue for a while, I understand the reasoning
behind your desire for wraplength instead of wrapmargin. I'd like to
apologize for my tone when I posted this morning. I hadn't paused to
think "outside the box" so-to-speak. :^)
Anyway, I hope the patch I came up with then was helpful.. and let me
(or anyone else who's willing to dive into some C coding) know if you
have any ideas for improving the way it works. Ideally, I guess, the
smart-wrap code would be able to clamp "plain text" to 78 chars or
whatever's appropriate for paragraphs.. and then it would ignore the
wraplength value for stuff like URL's or source code snippets that
benefit from long unbroken lines.
Also, kudos to the mutt authors for making the code so easy to enhance
and modify! Adding the configuration option was a breeze.
Ganbatte ne,
Allister