[stringtemplate-interest] indented IFs in STv4

Terence Parr parrt at cs.usfca.edu
Fri Nov 6 14:47:14 PST 2009


Hi,

Some of you have asked for (and I've wanted) to indent IFs w/o  
screwing up the indentation.  For example,

[
     <if(x)>
     foo
     <else>
     bar
     <endif>
]

should not indent foo or bar twice, which it did in STv3.  result is

[
	foo
]

or

[
	bar
]

took me a bit to make this happen but worth it.

Ter



More information about the stringtemplate-interest mailing list