[stringtemplate-interest] normalize \n to \n in ST

brian brianchina60221 at gmail.com
Wed Jun 4 12:56:25 PDT 2008


On Wed, Jun 4, 2008 at 2:51 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
> I am proposing to normalize the use of \n in templates. If you say \n
> you get \n or \r\n depending on locale.  Actually, maybe we should
> make it a parameter you send to the template group? You might have a
> Web server that should be sensitive to the client locale not the
> server locale, right?

Yeah. Sometimes protocols or whatever dictate certain line endings,
and it doesn't matter where the client/server is running. If you make
\n autochange, please leave some way to get ST to produce exactly what
we ask for.


More information about the stringtemplate-interest mailing list