Minnesotan wrote:

>I noticed (maybe) a flaw in the wrap template here. I included a
>sample before/after text for someone to check it, and explain maybe
>why this happens.

Interesting secondary effect.  One of my biggest hurdles to adopting
The Bat! as my email client was the nonstandard (ok, LESS standard)
quote method, which leaves a troublesome space after the delimiter.

My modified rewrap/boxquote template (quick and dirty, since I did
this the very first time I tried the program) produces the following
from your input block:

>=================INPUT START==================

>[snipped]
>> sample sample sample sample sample sample sample sample sample
>> sample sample sample sample sample sample sample sample sample
>> sample sample sample sample sample sample sample sample sample

>sample sample sample sample sample sample sample sample sample
>sample sample sample sample sample sample sample sample sample
>sample sample sample sample sample sample sample sample sample

>> sample sample sample sample sample sample sample sample sample
>> sample sample sample sample sample sample sample sample sample
>> sample sample sample sample sample sample sample sample sample

>sample sample sample sample sample sample sample sample sample
>sample sample sample sample sample sample sample sample sample
>sample sample sample sample sample sample sample sample sample

>=================INPUT END==================

At least this doesn't exhibit the output problem you were seeing.
Note that I haven't bothered to correct the nested quote delimiters
programmatically, since most of my correspondents use the original
(and imho more sensible) ">" standard.

Here's the reply template that generated the output above:

+---- [REQUOTE reply quote template]
|
| %_Text="%-
| %SETPATTREGEXP='(?ism)[\n]*(.*?)[\n]*((-- [\n])|\z)'%-
| %REGEXPBLINDMATCH='%text'%-
| %SUBPATT='1'"%-
| %rem=' force wrap on all replies
|   %_Wrap_Text=%_Text%-
|   %_Text=%QINCLUDE(wrap)%-
| '%-
| %QINCLUDE(requote2)%-
|
+---- [end of REQUOTE template]

+---- [REQUOTE2 template]
|
| %_Side=">"%-
| %-
| %If:+%_FirstTime+=++:+%-
| %___%_FirstTime="No"%-
| %___%SetPattRegExp='(?is)(\n)\z'%-
| %___%If:"%RegExpMatch(%_Text)"="":"%_Text='%_Text
| '"%-
| %___%QInclude(requote2)
| +:+%-
| %___%SetPattRegExp='(?is)\A(.*?)\n(.*\n)\z'%-
| %___%RegExpBlindMatch(%_Text)%-
| %___%If:"%Subpatt(2)"<>"":"%-
| %______%If:'%SubPatt(1)'<>'':%_Side%-
| %______%SubPatt(1)%-
| %______%_Text='%Subpatt(2)'
| %______%QInclude(requote2)%-
| %___":"%-
| %______%_Side%_Text%-
| %______%_FirstTime=''"%-
|
+---- [end of REQUOTE2 template]

Note that you can easily tweak it to force-wrap everything (like the
MicroEd editor, which resolves long lines but messes up short ones).
You can also have it quote blank lines by leaving out one clause.

(What I'd really like to see it do is to force wrap paragraphs if and
only if all but the last line of the paragraph exceed a certain
column threshold--say 50 characters or so.  This would preserve
most deliberate short lines while fully wrapping the rest of the
quoted text.)

Apologies to the original template writers for my hack job.
-- 
zParticle [fellow Minnesotan]


________________________________________________
Current version is 2.04.7 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to