Re: extra whitespace

"Mark A. Fuller" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <1722781.1139443280120.JavaMail.root@elwamui-lapwing.atl.sa.earthlink.net>
From: Chris Beck <[email protected]>
>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




-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.