Len Weisberg wrote: > What I'm looking for is a flavor of a "chomp" option, somewhat analogous to > how CHOMP_COLLAPSE targets the specific needs of HTML.
Sounds reasonable. Perhaps in addition to: CHOMP => CHOMP_NONE (0) CHOMP => CHOMP_REMOVE (1) CHOMP => CHOMP_COLLAPSE (2) we could also allow CHOMP to be set to any other value to indicate what character(s) you want the whitespace collapsed to. e.g. CHOMP => "\n" In TT3 there is a new chomp flag '=' to indicate the CHOMP_COLLAPSE behaviour, in addition to '-' which does CHOMP_REMOVE. So with POST_CHOMP set to "\n", you could do this: [% blah =%] # to collapse to a newline [% blah %] and/or this: [% blah -%] # to remove newline and all whitespace [% blah %] A _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
