>>>>> "Jason" == Jason Gottshall <[EMAIL PROTECTED]> writes:
Jason> <nobr>
Jason> [%- FOREACH thing IN things -%]
Jason> <a href="[% thing.link %]">
Jason> [%- thing.name -%]
Jason> </a>
Jason> [%- END -%]
Jason> </nobr>
Jason> Right now, this is rendering with line breaks intact. It's still
Jason> simpler than the reality, but shows a little better what I'm trying to
Jason> do. Yes, I could put all the stuff on the same line and not worry
Jason> about chomping, but I also have readability issues I'm trying to
Jason> address. The bottom line is that I'm not getting the expected chomping
Jason> behavior from the minuses.
Are you sure?
$ tpage
setting: [% things =
[
{ link => 'one', name => 'onename' },
{ link => 'two', name => 'twoname' },
{ link => 'three', name => 'threename' },
]; %], done.
<nobr>
[%- FOREACH thing IN things -%]
<a href="[% thing.link %]">
[%- thing.name -%]
</a>
[%- END -%]
</nobr>
^D
setting: , done.
<nobr><a href="one">onename</a><a href="two">twoname</a><a
href="three">threename</a></nobr>
$
Looks precisely as expected to me. How are you viewing the output?
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates