>might be generating text into a block where trying to get cute with
>newlines would ruin the whole layout.
I wasn't very clear. Sorry. What I was thinking was that the newlines would only get
stripped on lines that consisted entirely of non-outputting HTML::Template control
directives, like <TMPL_LOOP>,</TMPL_LOOP> and <TMPL_IF>,</TMPL_IF> and a newline
character.
Current behavior would still screw up a <pre> block, unless you wrote your .tmpl files
without newlines for <TMPL_LOOP> and other "control" directives. I guess the way I
was thinking it would work is that if a line contains only control directives and a
newline, (not <TMPL_VAR> tags and a newline, it makes sense to keep newlines here),
that the line would disappear upon parsing.
Were the behavior of HTML::Template to change to what I'm suggesting, it most likely
wouldn't break anyone's templates, unless they relied on these control structures
having newlines with them.
Of course, this behavior (conditionally stripping newlines) could be an option, as
Keith Jackson suggested, so even then if someone relied on these extra newlines, they
could keep them in.
-DJCP
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]