Re: [htmltmpl] Whitespace (linefeed) suppression?
Brought to you by:
samtregar
From: David H. <da...@ho...> - 2004-05-11 20:56:22
|
On 11 May 2004, at 21:19, Keith Jackson wrote: > During previous discussions on this the suggestion was used to use tidy > in some way. running the template output through HTML::Tidy in some way is a no-brainer... > Obviously in HTML the whitespace is fairly harmless, but > for an email template or using H::T for something other then HTML the > whitespace makes a big difference. as is s/\n\n/\n/g ! > > So I throw my vote in for a flag to include or not include the LF with > certain H::T tags. Ok, I'll buy this. Template::Toolkit has a variety of options for including or not whitespace after tags, either in the configs, or at the tag level, closing with -%]. -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock bands |