From: Aaron Trevena Date: Fri, 18 Apr 2008 09:31:53 +0000 (+0000) Subject: added post_chomp as default option for TT X-Git-Tag: 2.13~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=fc53e2df4c3f802efe2a61a1b2af1bdeb80fdbdd;p=maypole.git added post_chomp as default option for TT git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@590 48953598-375a-da11-a14b-00016c27c3ee --- 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,