wilkinsona / project-generator

3 stars 4 forks source link

Define an IndentingWriterFactory #34

Closed snicoll closed 5 years ago

snicoll commented 5 years ago

There is a need to customize code formatting at a high level, potentially according to the nature of the document to write (xml, java, kotlin, etc).

Right now our IndentingWriter is indenting with four spaces. It may evolve to support more basic formatting options and we should have an instrastructure to customize this.

Use case: use tabs vs. space in the generator by redefining a strategy