Barrie Slaymaker wrote: > Run this through tpage; without the patch, the error is reported on line > 3, with it the error is reported on line 2. If you have more [%- ... %] > tags before the END tag, the offset grows worse. > > [%- 1 -%] > [%- END %]
When I run it through tpage, I see the error on line 2, as expected. However, if you remove the post-chomp flag, then it does appear to produce the unexpected result. [%- 1 %] [%- 1 %] [%- 1 %] [%- 1 %] [%- END %] Although here it gets reported at line 1 instead of line 5. Anyway, it's clear there's a problem and the patch fixes it, so it's applied. Many thanks. A _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
