>>> By subverting the BoxQuote QT, you can get what you want:

>> I  used  exactly  that  but  the  problem  is that it doesn't wrap text.

JA> You need to nest my rewrap templates in with Carsten's box quote
JA> template.  Copy the wrap2 template from:
JA> http://www.silverstones.com/thebat/Library.html#rewrap

JA> Then a small change to Marck's version of Carsten's boxquote template
JA> gives the following:

I used this bqq template, and tried to modify it, but I'm having two
problems, one of which I imagine is with the wrap2 template, and not
bqq.

Your bqq template does not put the ",-----[ from: ]" leader nor the
"`------" trailer like the original boxquotes template. I tried to
modify yours to include those (by copying how the original bq
template did it), but for some reason it adds garbage at the end of
the "`-----", a bunch of +, :, and |.  Is this because your template
also calls the original in a %qinclude?

Second problem, in the wrapping, the original spaces between
paragraphs are deleted, and the whole message, while wrapped, becomes
one long paragraph. Can wrap2 be modified to keep the original lines of
spaces? I'm trying to learn this stuff, but I'm a newbie, and haven't
a clue how this stuff is working yet.

Thanks!

Here's how I modified the bqq template:

___________________________________________________________________
%REM=' bq - Paste as BQQ
            original written by Carsten Thoenges, December 2002
'%-
%If:+%-
%-%SetPattRegExp=&\A(ct,6567,,,TOH)&%-
%-%RegExpMatch=&%Comment&+<>+ct,6567,,,TOH+%-
:+%-
%-,----- [ %OFROMNAME said: ]%-
%-%COMMENT='%TEXT'%-
%-%COMMENT='%QINCLUDE="wrap2"'%-
%-%IF:"%SETPATTREGEXP='(?is).*\n\z'%REGEXPMATCH='%COMMENT'"=""%-
:"%-
%-%-%COMMENT='%COMMENT
'"%-
%-%Comment=&ct,6567,,,TOH%COMMENT&%QInclude=&bq&+%-
%-`-------+%-
:+%-
%-%IF:"%-
%-%SETPATTREGEXP='(?is)\A.*?\n(.*)'%-
%-%REGEXPMATCH='%COMMENT'"<>""%-
:"%-
%-%SETPATTREGEXP='(?is)\Act,6567,,,TOH(.*?)\n'%-
| %REGEXPMATCH='%COMMENT'%-
%-
%-%COMMENT='ct,6567,,,TOH%-
%-%SETPATTREGEXP=_(?is)\Act,6567,,,TOH.*?\n(.*)_%-
%-%REGEXPMATCH=_%COMMENT_'%-
%-%QINCLUDE='bq'"%-
:"| %SETPATTREGEXP=&\Act,6567,,,TOH(.*)&%-
%-%-%REGEXPMATCH=&%COMMENT&%-
%-%-%COMMENT=''"%-
+%-
___________________________________________________________________

Here's your original version of the template:

JA> ___________________________________________________________________
JA> %REM=' bq - Paste as BQQ
JA>             original written by Carsten Thoenges, December 2002
JA> '%-
JA> %If:+%-
JA> %-%SetPattRegExp=&\A(ct,6567,,,TOH)&%-
JA> %-%RegExpMatch=&%Comment&+<>+ct,6567,,,TOH+%-
JA> :+%-
JA> %-%COMMENT='%TEXT'%-
JA> %-%COMMENT='%QINCLUDE="wrap2"'%-
JA> %-%IF:"%SETPATTREGEXP='(?is).*\n\z'%REGEXPMATCH='%COMMENT'"=""%-
JA> :"%-
JA> %-%-%COMMENT='%COMMENT
JA> '"%-
JA> %-%Comment=&ct,6567,,,TOH%COMMENT&%QInclude=&bq&+%-
JA> :+%-
JA> %-%IF:"%-
JA> %-%SETPATTREGEXP='(?is)\A.*?\n(.*)'%-
JA> %-%REGEXPMATCH='%COMMENT'"<>""%-
JA> :"%-
JA> %-%SETPATTREGEXP='(?is)\Act,6567,,,TOH(.*?)\n'%-
JA> | %REGEXPMATCH='%COMMENT'%-
JA> %-
JA> %-%COMMENT='ct,6567,,,TOH%-
JA> %-%SETPATTREGEXP=_(?is)\Act,6567,,,TOH.*?\n(.*)_%-
JA> %-%REGEXPMATCH=_%COMMENT_'%-
JA> %-%QINCLUDE='bq'"%-
JA> :"| %SETPATTREGEXP=&\Act,6567,,,TOH(.*)&%-
JA> %-%-%REGEXPMATCH=&%COMMENT&%-
JA> %-%-%COMMENT=''"%-
JA> +%-
JA> �������������������������������������������������������������������


-- 
David

When it is dark enough, you can see the stars. � Ralph Waldo Emerson


________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to