Randal wrote:
>>>>> "Jason" == Jason Gottshall <[EMAIL PROTECTED]> writes:

Jason> The following
Jason> <b>
Jason> [%- myname -%]
Jason> </b>

Jason> should render as

Jason> <b>Jason</b>

Jason> Right?

Only if myname eq "Jason". Not if myname eq "\nJason\n".

True :-). Sorry, my example may have been too simplistic to represent the details of my situation. I'm getting the same behavior with all directives, not just GET. Here's a better example:


<nobr>
[%- FOREACH thing IN things -%]
<a href="[% thing.link %]">
[%- thing.name -%]
</a>
[%- END -%]
</nobr>

Right now, this is rendering with line breaks intact. It's still simpler than the reality, but shows a little better what I'm trying to do. Yes, I could put all the stuff on the same line and not worry about chomping, but I also have readability issues I'm trying to address. The bottom line is that I'm not getting the expected chomping behavior from the minuses.

Jason


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to