Re: [htmltmpl] extra whitespace
Brought to you by:
samtregar
From: Mark A. F. <mar...@ea...> - 2006-02-09 01:00:13
|
From: Chris Beck <htm...@pa...> >and produces an easy to read and debug html page. I may not agree with this. If you're in the reading and debugging stage, don't use the filter option. If the whitespace (which you added to the template to make the template readable) interferes with your reading and debugging of the resulting HTML file, then use a modified filter that condences multiple line feeds to one. When it's running on the production server you can use a different filter (to strip all whitespace, including whitespace between HTML tags). I agree that it seems obvious that an H::T tag standing by itself should'nt leave a residual linefeed. But, the filter works fine. And, it will be applied just once (beneficial to caching). I'd rather have H::T let me choose to do this one-time processing however I wish rather than do it form me when it outputs the template (which is where I assume it would happen if we expected it to drop linefeeds for standalone tags?). I haven't found the filter option to be punitive. Mark |