Hello George,
On Tuesday, August 12, 2003 at 09:40 GMT +0300, George M. Menegakis
[GMM] pressed random keys until the following was produced:
Before we start, a question for the moderators:
How should we handle Tech questions involving features
from the Beta series? This thread doesn't seem to fit on
any of the lists terribly well.
GMM> My mistake. What I wish is to strip empty lines or lines with
GMM> whitespaces from quoting. Just what the perl mini program I wrote, did.
Ah, I misunderstood. See below.
GMM> I will try to see if I can modify your template although the syntax of
GMM> macros comfuse me totally.
Well, Perl syntax confuses me, so let's call it even. ;-)
As for you request, it's fairly easy to modify the template I had
provided. If I understand you, something like:
,------ [ example ]
| Paragraph 1
|
| Paragraph 2
`----------
Would become:
,------ [ example ]
| Paragraph 1
| Paragraph 2
`----------
If that's not what you meant, could you please give an example?
If you do want what I described above, see the following:
Note I've renamed the QT and the variable prefixes to give
a slightly more accurate description.
****DISCLAIMER****
For anyone else reading this, do **NOT** use these templates if you
have TB version 1.63b7 or earlier.
******************
=====[Begin Strip QT]=====
%REM='
Blank line stripping routine using features from TB 1.63b11
Written August 2003 by Januk Aggarwal
Notes:
1. This template can be used alone to modify clipboard
contents or can be used as an engine by assigning text to
the variable, %_Strip_Text, in the driver template.
'%-
%-
%IF:'%_Strip_FirstTime'='':'%-
%___%IF:"%_Strip_Text"="":"%_Strip_Text(%Clipboard)"%-
%___%_Strip_FirstTime="No"'%-
%-
%IF:'%_Strip_Text'<>'':'%-
%-
%SetPattRegexp="(?is-m)^(.*?)(\n(.*)|)\z"%-
%RegexpBlindMatch(%_Strip_Text)%-
%-
%_Strip_Line_1(%Subpatt(1))%-
%_Strip_Remainder_Of_Text(%Subpatt(3))%-
%-
%If:"%-
%____%SetPattRegexp=!^\s*$!%-
%____%RegexpMatch=!%_Strip_Line_1 !"="":"%-
%____%_Strip_Line_1
"%-
%-
%_Strip_Text(%_Strip_Remainder_of_Text)%-
%-
%QInclude(Strip)'%-
=====[ End Strip QT]=====
So your main template would need something like:
=====[Begin Template Extract]=====
%_Strip_Text(%Quotes)%-
%QInclude(Strip)%-
=====[ End Template Extract]=====
--
Thanks for writing,
Januk Aggarwal
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html