[stringtemplate-interest] indented IFs in STv4
Zenaan Harkness
zen at freedbms.net
Fri Nov 6 21:31:50 PST 2009
On Fri, Nov 06, 2009 at 05:36:29PM -0800, Terence Parr wrote:
> doh. ok, now I'm not sure. What do you guys think? It's easier to
> impl. and understand if I simply ignore indents on multi-line IFs and
> indent values like foo according to literally what's in front of them.
>
> Ter
> On Nov 6, 2009, at 5:04 PM, Terence Parr wrote:
>
> > Ooops. correct that it should not indent twice...but it shouldn't
> > indent even once:
> >
> > [
> > foo
> > ]
> >
> > The IF indent indicates you want that as just a "readability" indent
> > and not a true one. We have to subtract that from indent of foo or
> > bar.
> >
> > An IF on line by itself is a true indent:
> >
> > <if(x)>foo<endif>
This sounds good. Don't have the opportunity right now to test it
to see if there are any issues in practice, but I imagine no more
difficulty the the current process of having to figure it out, yet
a little more straightfoward. does sound good.
best
zen
--
Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.
More information about the stringtemplate-interest
mailing list