On Monday, June 2, 2003, 1:31:54 AM, you wrote:

D>> Everything except leaving the initial blank lines.  It wraps just like
D>> it's supposed, and puts it in boxquotes, and no longer has weird
D>> character additions, etc., but it still doesn't keep the original
D>> blank lines.

JA> Do you mean that the paragraphs are only separated by one blank line
JA> instead of the 4 or 5 or 10 that there might have been originally?  If
JA> so, that's by design of the wrap2 template.  You could change that by
JA> making the wrap2 template look like:

No, what was happening is, if I had, say, three paragraphs separated
by blank lines, wrap2 and bqq were stripping the blank lines.

So if the original was like this:

Paragraph 1

Paragraph 2

Paragraph 3

Then after wrapping and boxquoting, the blanks are gone, and it looks
like this:

,----- [  said: ]
| Paragraph 1
| Paragraph 2
| Paragraph 3
`-------

Your new version of wrap2 is leaving the blank lines, but alas, it is
also causing weird multiple quotation:

,----- [ said: ]
| Paragraph 1
| 
| Paragraph 2
| 
| Paragraph 3
| Paragraph 2
| 
| Paragraph 3
| Paragraph 3
`-------

(please note that I changed my bqq template to use the %clipboard, not
%text, but otherwise, everything is the same). Later today, after some
Very Important Work is finished for me, I shall pour over these
dutifully and try to really figure out what's happening, so I don't
have to keep bothering you all with such uninformed questions on my
part. My regex ability is pretty darn thin right now. :-)

JA> =====[Begin modified wrap2]=====
JA> %IF:'%-
JA> %SETPATTREGEXP="(?is-m)[^\n]+"%-
JA> %REGEXPMATCH="%COMMENT"'<>'':'%-
JA> %-
JA> 
%WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
JA> %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
JA> %-%-%-%-%-%SUBPATT="1"_%-
JA> %-
JA> %SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
JA> %REGEXPBLINDMATCH="%COMMENT"%-
JA> %SUBPATT="2"%-
JA> %-
JA> 
%COMMENT=_%SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
JA> %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
JA> %-%-%-%-%-%SUBPATT="7"_%-
JA> %QINCLUDE="wrap2"'
JA> =====[ End  modified wrap2]=====



-- 
David

You cannot control a marionette with only one string � from "Dune"
No of SETI units returned: 501
Processing time: 1 years, 88 days, 12 hours.
(Total hours: 10884)
www.setiathome.ssl.berkeley.edu


________________________________________________________

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

Reply via email to