I set the following:
    my $tt = Template->new(
                           {
                               INCLUDE_PATH => 
Config::File->new()->www_stem.'templates/Reports/LocusReport/InteractionServer',
                               TEMPLATE_OPTIONS => {
                                   PRE_CHOMP => 1,
                                   POST_CHOMP => 1,
                                   INTERPOLATE => 1,
                                   TRIM => 1,
                               }
                           }
                           );

However, in my template I have

blah blah XML
    <att name="GRAPH_VIEW_CENTER_X" label="GRAPH_VIEW_CENTER_X" value="0.0" 
type="real"/>
    <att name="GRAPH_VIEW_CENTER_Y" label="GRAPH_VIEW_CENTER_Y" value="0.0" 
type="real"/>
[% FOR att = xml_generic_atts %][% att %][% END %]
[% FOR node = xml_nodes %][% node %][% END %]
[% FOR edge = xml_edges %][% edge %][% END %]
</graph>

I get all sorts of extra blank lines between directives and between the last 
<att .. /> and the first record, and between the last record and </graph>
I tried PRE_CHOMP (and POST_CHOMP) => 2 and 3 ... but still the only thing that 
works is to take the \n out of my template file, which leads to very long lines.

What I am doing wrong?  (This is Template::Toolkit 2.20)

Ben

--
Ben Hitz
Senior Scientific Programmer
Saccharomyces Genome Project
Stanford University
[email protected]




_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to