Looks precisely as expected to me. How are you viewing the output?
Under mod_perl, I've written an Apache handler (based on the ideas in Apache::Template) which processes the template specified in the URL. Here's a stripped-down version of the code:
sub handler {
my $r = shift;
my $file = &gettemplatefile($r);
my $vars= &gettemplatevars;
my $template = Template->new({
INCLUDE_PATH => &include_path,
PLUGIN_BASE => &plugin_base,
DEFAULT => 'default.tt',
ABSOLUTE => 1,
LOAD_PERL => 1,
EVAL_PERL => 1,
PRE_PROCESS => &preprocess,
WRAPPER => &wrappers,
BLOCKS => {},
TRIM => 1,
});
$r->content_type('text/html');
$r->send_http_header;
my $page;
$template->process($file, $vars, \$page);
$r->print($page);
return OK;
}I'm guessing that something else in my configuration is overriding the inline chomp, but I don't know what.
Jason
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
