[stringtemplate-interest] Looking for the 'right' way to split lines

VAUCHER Laurent VAUCHER at fermat.fr
Wed Jan 18 02:39:47 PST 2006


  Hi.

  I'm using stringtemplate to generate Java source code, and, as far as
possible, I'd like the generated code to conform to our current coding
standards. The question I have is about splitting lines. I think it
should be the responsibility of the view part (templates) to split
lines, but how could I do it?

  The simple example is when having a collection of values that should
be output as an array litteral. Is it possible to express conditionnal
line splitting like: "insert a newline if we've reached column 80"?


Laurent.


More information about the stringtemplate-interest mailing list