Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.0, 2.0.1Release
-
Fix Version/s: 2.1.0Release
-
Component/s: Formatting
-
Labels:None
-
Environment:Eclipse on Mac
-
Patch Submitted:Yes
-
Number of attachments :
Description
Can we fix the formatting (using Eclipse's format
menu option) for an array of closures.
Example: For this definition:
def all_prints = [
,
{ println "B" }]
It turns it into:
def all_prints = [
,
{ println "B" }]
I have also seen an example where the "def" turns into one long line.
I use the "format" menu option for Groovy all the time and this is the
only place where the current behavior makes me want to stop using the
formatting menu option.
Thanks.
Are you using version 1.6? If so, I recommend that you upgrade. This bug is not fixed in the latest version, but many others are.