Re: [htmltmpl] extra whitespace

2006-02-08 Thread Mark A. Fuller
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 re

Re: [htmltmpl] extra whitespace

2006-02-08 Thread Chris Beck
Rumour has it Mark A. Fuller, on or about 08.Feb.2006 17:46, whispered: > But, as someone said back then: white space in HTML is not "display". > Viewing HTML is not "presentation." I ended up agreeing with that. Ah, I am not so sure. It so happens that the HTML spec allows you to ignore whitespa

Re: [htmltmpl] extra whitespace

2006-02-08 Thread Mark A. Fuller
From: Alex Teslik <[EMAIL PROTECTED]> > I am dealing with the formatting of a lot of plain text in and tags. You can write a regex to remove whitespace only following TMPL_* tags. It doesn't have to remove *just* linefeeds or remove all linefeeds in the file. > I think the additional whites

Re: [htmltmpl] extra whitespace

2006-02-08 Thread Alex Teslik
On Wed, 8 Feb 2006 14:30:16 -0700 (GMT-07:00), Mark A. Fuller wrote > I raised this issue a year or two ago and it wasn't well-received. Hi Mark, I completely agree that the filter option is an excellent feature, but I'm not certain it is the right feature to use for stripping linefeeds. I am

Re: [htmltmpl] extra whitespace

2006-02-08 Thread Mark A. Fuller
From: Chris Beck <[EMAIL PROTECTED]> >H:T, in my view, is most useful to separate display from code. Adding more >layers and wrappers of code to affect display is counter-productive. I fully understand your argument because *I* made it a year or two ago. I feel like I'm arguing against myself. :

RE: [htmltmpl] extra whitespace

2006-02-08 Thread Paulsen, Brian
Wasn't there a push a while back to have a HTML::Template::Filter class that would have commonly used filters? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark A. Fuller Sent: Wednesday, February 08, 2006 4:30 PM To: Alex Teslik; html-template-users

Re: [htmltmpl] extra whitespace

2006-02-08 Thread Chris Beck
Rumour has it Mark A. Fuller, on or about 08.Feb.2006 16:30, whispered: > I raised this issue a year or two ago and it wasn't well-received. > It seems like it's common for newcomers (as I was) to spot this > and believe it's a shortcoming in H::T. Look, of course there are ways around it, with mu

Re: [htmltmpl] extra whitespace

2006-02-08 Thread Mark A. Fuller
From: Alex Teslik <[EMAIL PROTECTED]> >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? I raised this issue a year or two ago and it wasn't well-recei

RE: [htmltmpl] extra whitespace

2006-02-08 Thread Paulsen, Brian
I think a filter function would do this for you easily. Something like this: my $filter = sub { my $text_ref = shift; $$text_ref =~ s/(]>)[\r\n]+/$1/g; }; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, Fe

Re: [htmltmpl] extra whitespace

2006-02-08 Thread html-template-users
Rumour has it Alex Kapranoff, on or about 08.Feb.2006 12:57, whispered: > * Alex Teslik <[EMAIL PROTECTED]> [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

Re: [htmltmpl] extra whitespace

2006-02-08 Thread Alex Kapranoff
* Alex Teslik <[EMAIL PROTECTED]> [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 > remo

[htmltmpl] extra whitespace

2006-02-08 Thread Alex Teslik
Hello, 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