On Mon, 24 Sep 2001 [EMAIL PROTECTED] wrote:

> 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've used TMPL_LOOPs to write <pre> blocks with no problems.  You just
have to be aware of where your newlines are and only add them where you
want them to appear in the output.  It might be not pretty but it does
work.

> 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.

You could do this with the filter option.

> 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.

I suppose it could.  Why should this be part of HTML::Template, though?
There's already a bevy of HTML re-formatters available.  Any reason you
don't want to use one?

-sam



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to