From fc53e2df4c3f802efe2a61a1b2af1bdeb80fdbdd Mon Sep 17 00:00:00 2001 From: Aaron Trevena Date: Fri, 18 Apr 2008 09:31:53 +0000 Subject: [PATCH] added post_chomp as default option for TT git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@590 48953598-375a-da11-a14b-00016c27c3ee --- lib/Maypole/View/TT.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index a14b80f..c966a7d 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -21,6 +21,8 @@ sub template { if ($r->debug) { $view_options->{DEBUG} = $debug_flags; } + + $view_options->{POST_CHOMP} = 1 unless (exists $view_options->{POST_CHOMP}); $self->{provider} = Template::Provider->new($view_options); $self->{tt} = Template->new({ %$view_options, -- 2.39.5