[stringtemplate-interest] whitespace removal

John D. Mitchell jdmitchell at gmail.com
Mon Oct 12 17:37:47 PDT 2009


Yes!  If you don't then I'll come over and beat you!

:-),
John

On Oct 12, 2009, at 17:34 , Terence Parr wrote:

> yo, i trim whitespace at the start and end of templates. easier to add
> \n and spaces in calling templates rather than trying to get rid of
> it.  Even in small templtes it makes sense:
>
> <names:{n | <n>}>
>
> You don't want the space between | and <n> to appear in output.
>
> That means I would keep the "trim ws rule" in v4 as i have in v3.
>
> Ter
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list