[stringtemplate-interest] "\n" goes away

Terence Parr parrt at cs.usfca.edu
Wed Oct 14 12:09:02 PDT 2009


On Oct 13, 2009, at 11:21 PM, Zenaan Harkness wrote:
> On Tue, Oct 13, 2009 at 08:41:47PM -0700, Bill Venners wrote:
>> Hi Terence,
>>
>> How about a newline keyword? Something like:
>>
>> <expr; separator=newline>
>>
>> Verbose, and an extra keyword, but clear.
>
> Hi Bill, how would you then write a separator of 'two spaces, followed
> by a newline, follwed by a single tab character, followed by two more
> spaces'??

Ah. good point. now it would be:

separator={ <\n> }

I guess that's not horrible, but...

Ter


More information about the stringtemplate-interest mailing list