eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

Option for line break representation #43

Closed lucaswerkmeister closed 10 years ago

lucaswerkmeister commented 10 years ago

There should be an option to break lines with LF, CRLF, CR, or whatever else the user wants. Currently I just use Writer.writeLine(), and quite frankly I have no idea how that behaves, but even if it uses the platform’s line breaks, that’s still wrong if people share code across multiple platforms and don’t let their VCS convert the line breaks.

lucaswerkmeister commented 10 years ago

Oh wow, source gen can’t handle a String type :D

lucaswerkmeister commented 10 years ago

Come to think of it, how the hell should this look in the options?

lineBreak=

otherOption=...

won’t do…