[Templates] POST_CHOMP backward compatibility

Dave Howorth dhoworth@mrc-lmb.cam.ac.uk
Tue, 10 Apr 2007 11:19:39 +0100


Станка Далекова wrote:
> I have a question regarding Template::Parser::split_text. We have
> upgraded from version 2.14 to version 2.18 and we have used  in our
> template configuration
> PRE_CHOMP=>1 and POST_CHOMP=>1. The effect was to clear white spaces
> before and after directives. With
> the new version we saw now not only white spaces are cleared but new
> lines also. Is there a way to reach the old functionality?

I'm not an expert but as you haven't had any replies so far, can I
suggest something? There's a description of what should happen in 2.18
in the section titled 'PRE_CHOMP, POST_CHOMP' on this page:
<http://search.cpan.org/~abw/Template-Toolkit-2.18/lib/Template/Manual/Config.pod>
and there's a corresponding description for 2.14 on this page:
<http://search.cpan.org/~abw/Template-Toolkit-2.14/lib/Template/Manual/Config.pod>

If you compare those details with the behaviour of your system, can you
see whether there is some way to do what you want? Or is TT not behaving
like it's documented? Or do you need a change in the documented behaviour?

Cheers, Dave