Re: [htmltmpl] extra whitespace
Brought to you by:
samtregar
From: Alex K. <ka...@ra...> - 2006-02-08 17:56:26
|
* Alex Teslik <al...@ac...> [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 > the only thing on the line is a TMPL tag? Currently, the TMPL tags are > removed, but the \n or \r that trail them are not. The result is HTML with > large amounts of whitespace. The workaround of not putting a \n after a TMPL > 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. -- Alex Kapranoff, $n=["1another7Perl213Just3hacker49"=~/\d|\D*/g]; $$n[0]={grep/\d/,@$n};print"@$n{1..4}\n" |