* Januk Aggarwal writes:
> 11:42 GMT -0600, Leif Gregory [LG] chiseled the following:

>> No problem. Hopefully someone will answer my question on combining the
>> two QTs to make a wrapping BQ.

> Ah yes, I didn't notice, but Carsten's and my templates both use the
> same variable, %_FirstTime.  That messed things up.  No problem,
> simply delaying the definition of %_FirstTime in Carsten's template
> fixes everything: 

Maybe we should use prefixes for varibles...? 

--8<---------------cut here---------------start------------->8---
%REM=' bq - Paste as Boxquote
            written by Carsten Thoenges, December 2002
            June 2003 - use new features of v1.63 beta 9
            Last modified: 2003-06-13
'%-
%_bqTopAndTail="-----"%-
%_bqTopCorner=","%-
%_bqBottomCorner="`"%-
%_bqSide="| "%-
%_bqTitleFormat=" [ %CURSOR ]"%-
%-
%If:+%_bqFirstTime+=++:+%-
%___%_bqFirstTime="No"%-
%___%_bqTopCorner%_bqTopAndTail%_bqTitleFormat
%___%_bqText="%Clipboard"%-
%___%SetPattRegExp='(?is)(\n)\z'%-
%___%If:"%RegExpMatch(%_bqText)"="":"%_bqText='%_bqText
'"+%-
%SetPattRegExp='(?is)\A(.*?)\n(.*\n)\z'%-
%RegExpBlindMatch(%_bqText)%-
%If:"%Subpatt(2)"<>"":"%-
%___%_bqSide%SubPatt(1)%-
%___%_bqText='%Subpatt(2)'
%___%QInclude(bq)%-
":"%-
%___%_bqSide%_bqText%-
%___%_bqBottomCorner%_bqTopAndTail%-
%___%_bqFirstTime=''"%-
--8<---------------cut here---------------end--------------->8---

Hm, it makes the source look a bit uglier, very good ;-)
-- 
Carsten (I think bq isn't far from a final version...)


________________________________________________________
 Current beta is 1.63b11 | "Using TBBETA" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to