On Wednesday, August 21, 2002 at 7:53 PM, it was me, Januk Aggarwal
[JA] who wrote:

JA> If that's the case, then you can use an updated version of wrap2.
<snip>

In my testing I noticed that the wrap2 template fails when a
paragraph separating line contains only white space characters.

I've seemingly fixed it with the following template, but I fear that I
may have made the regexps a little too general.  I didn't have any
text that failed, but my test sets are somewhat limited.  I'd
appreciate some feedback on how well this fix worked.

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

%COMMENT=_%SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
%-%-%-%-%-%SUBPATT="7"_%-
%QINCLUDE="wrap2"'
=====[ End  wrap2]=====


-- 
Thanks,
 Januk Aggarwal

This page intentionally left unblank.


______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to