RE: [htmltmpl] extra whitespace
Brought to you by:
samtregar
From: Paulsen, B. <BPa...@le...> - 2006-02-08 18:25:18
|
I think a filter function would do this for you easily. Something like this: my $filter =3D sub { my $text_ref =3D shift; $$text_ref =3D~ s/(<TMPL_[~>]>)[\r\n]+/$1/g; };=20 -----Original Message----- =46rom: htm...@li... [mailto:htm...@li...] On Behalf Of htm...@pa... Sent: Wednesday, February 08, 2006 1:19 PM To: htm...@li... Subject: Re: [htmltmpl] extra whitespace Rumour has it Alex Kapranoff, on or about 08.Feb.2006 12:57, whispered: > * Alex Teslik <al...@ac...> [February 08 2006, 20:43]: >> Is there a switch (feature request=3F) that will tell HTMLTMPL to=20 >> 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. >=20 > That would be very useful option indeed if done well and fast. > I'd use it everywhere. >=20 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 =66iles for problems=3F 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=3Fcmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 _______________________________________________ Html-template-users mailing list Htm...@li... 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 a= s= 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 b= e= secure or error-free. Therefore, we do not represent that this informatio= n= 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 t= o= be used and cannot be used for the purpose of (i) avoiding U.S. tax relate= d= penalties or (ii) promoting, marketing or recommending to another party an= y= transaction or matter addressed herein. |