I think a filter function would do this for you easily.
Something like this:
my $filter = sub {
my $text_ref = shift;
$$text_ref =~ s/(<TMPL_[~>]>)[\r\n]+/$1/g;
};
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, February 08, 2006 1:19 PM
To: [email protected]
Subject: Re: [htmltmpl] extra whitespace
Rumour has it Alex Kapranoff, on or about 08.Feb.2006 12:57, whispered:
> * Alex Teslik <[EMAIL PROTECTED]> [February 08 2006, 20:43]:
>> Is there a switch (feature request?) that will tell HTMLTMPL to
>> replace a TMPL followed by [\n\r]+ with nothing - even better replace
>> the whole line if
<snip>
>> tag creates hard to read template files. In particular, this would be
>> useful for the TMPL_LOOP and TMPL_IF/UNLESS constructs.
>
> That would be very useful option indeed if done well and fast.
> I'd use it everywhere.
>
Oh yes indeedy. Me too.
--
Chris Beck - http://pacanukeha.blogspot.com He needs a lang shanket
spoon that sups kail wi' the de'il
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems? Stop! Download the new AJAX search engine that
makes searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as an
offer to sell or as a solicitation of an offer to buy any financial product, an
official confirmation of any transaction, or as an official statement of Lehman
Brothers. Email transmission cannot be guaranteed to be secure or error-free.
Therefore, we do not represent that this information is complete or accurate
and it should not be relied upon as such. All information is subject to change
without notice.
--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this
communication (including any attachments) is not intended or written to be used
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties
or (ii) promoting, marketing or recommending to another party any transaction
or matter addressed herein.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users