On Tue, May 09, 2006 at 01:50:57PM -0400, Cees Hek wrote:
> On 5/9/06, Bill Moseley <[EMAIL PROTECTED]> wrote:
> >Does TT track the current column position?
> >
> >I want to have filter for use in email that will wrap, but respects
> >the current indent. For example:
>
> How about the Template::Plugin::Wrap plugin?
>
> [% USE wrap %]
> [% wrap(email.body, 78, ' ', ' ') %]
Seems like I was misunderstood. I know the warp and indent plugins.
I'm wondering if TT keeps track of the current column position in the
line so I can figure out the indent automatically inside a filter.
Some stuff: [% long_text | email_wrap %]
other: [% more_long_text | email_wrap %]
and automatically wrap to column 17.
--
Bill Moseley
[EMAIL PROTECTED]
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates