* David <[EMAIL PROTECTED]> writes:

CT>> BTW when you change the Quick Template's name (I guess you want to
CT>> keep the original bq) don't forget to adjust the %QIncludes to the
CT>> new name.

> Here, though, I found that if I made the %qincludes to be for "bqq"
> (the name I've given to this new template), it didn't work, but if I
> keep them as "bq", they work fine.

With these changes your QT works here as expected -- and calls
itself, not bq.

> %REM=' bqq - Paste as BQQ
>             original written by Carsten Thoenges, December 2002
> '%-
> %If:+%-
> %-%SetPattRegExp=&\A(ct,6567,,,TOH)&%-
> %-%RegExpMatch=&%Comment&+<>+ct,6567,,,TOH+%-
> :+%-
> %-,----- [ %OFROMNAME said: ]%-

%-,----- [ %OFROMNAME said: ]

> %-%COMMENT='%TEXT'%-
> %-%COMMENT='%QINCLUDE="wrap2"'%-
> %-%IF:"%SETPATTREGEXP='(?is).*\n\z'%REGEXPMATCH='%COMMENT'"=""%-
> :"%-
> %-%-%COMMENT='%COMMENT
> '"%-
> %-%Comment=&ct,6567,,,TOH%COMMENT&%QInclude=&bq&%-

%-%Comment=&ct,6567,,,TOH%COMMENT&%QInclude=&bqq&%-

> %-`-------+%-
> :+%-
> %-%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'"%-

%-%QINCLUDE='bqq'"%-

> :"| %SETPATTREGEXP=&\Act,6567,,,TOH(.*)&%-
> %-%-%REGEXPMATCH=&%COMMENT&%-
> %-%-%COMMENT=''"%-
> +%

+%-

(a minus was missing in the last line)

> Now - does anyone know how to get the text to wrap properly like this,
> but keep the original spaces between the paragraphs instead of lumping
> everything together into one long, orgiastic paragraph?

Should work with this new version.
-- 
Carsten


________________________________________________________

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

Reply via email to