You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Geir Magnusson Jr." <gm...@xyris.com> on 2000/12/04 17:36:47 UTC

RE: Platform independent formatting

the line terminator is a system property

> -----Original Message-----
> From:	jvanzyl@periapt.com [SMTP:jvanzyl@periapt.com]
> Sent:	Monday, December 04, 2000 11:41 AM
> To:	velocity-dev@jakarta.apache.org
> Subject:	Platform independent formatting
> 
> Hi,
> 
> Just wondering if anyone had any thoughts about
> using templates that are produced on one platform
> and generating output on another.
> 
> My example is line endings. In Torque I chop off
> commas and line endings in the generated SQL, but
> I am assuming unix style line endings. Just wondering
> if anyone has a more elegant tactic then converting
> all the text to be operated on to unix style line
> endings before operating on the text. Or possibly
> make a chomp() type method as in perl that removes
> line endings in a platform independent manner.
> 
> jvz.