eclipse-archived / ceylon.formatter

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

Keep blank lines introduced by "Organize Imports" #119

Closed bjansen closed 9 years ago

bjansen commented 9 years ago

"Organize Imports" groups imports by packages "roots", like this:

import ceylon.foo { ... }
<blank line>
import java.xyz { ... }
<blank line>
import org.xyz { ... }
import org.abc { ... } // no blank line here

It would be nice if the formatter kept those blank lines.

Also, I think it would be cool to force a blank line between the imports section and the first declaration (which seems to be a convention, for example in the SDK).

lucaswerkmeister commented 9 years ago

Should be done, both parts. Reopen if not :)