Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 blank lines separation problem - ID: 592496
Last Update: Settings changed ( marcohu )


Hello,

I'm using jalopy1.0b8.

I've set :
Separation.Blank lines : Case blocks Before : 1
Separation.Misc : Keep blank lines up to : 5
Separation.Chunks : By Comments activated.
Separation.Chunks : By Blank lines activated.

If I repeatedly use Jalopy on the class Test
the blank lines above the comment grow to
5 blank lines (each iteration appends a blank line).

public class Test
{
public void test()
{
int a;

// comment
a=1;
}
}

It seems that Jalopy appends a blank line each
time due to the "Case blocks before". But it doesn't
take into account the blank lines that are already there.
It appends till the maximum blank lines "Keep blank
lines up to".

Best Regards,
Kees Kuip.



Kees Kuip ( keeskuip ) - 2002-08-08 08:43

1

Closed

Fixed

Marco Hunsicker

None

None

Public


Comments ( 2 )

Date: 2002-08-13 06:39
Sender: keeskuip

Logged In: YES
user_id=54746

The following class also inserts lines up to the
number of "Keep blank lines up to"

public class Test
{
public Test()
{
String names;

names = new String[]
{
"1", "2", "3",
};

doTest();
}
}

Each time Jalopy is run a newline is added before
the call to 'doTest()'.

This happens also in Jalopy-b7.

Kees.




Date: 2002-08-08 21:18
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

I'll look into it. Shouldn't be too difficult to fix.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2002-11-13 00:02 marcohu
close_date - 2002-11-13 00:02 marcohu
resolution_id None 2002-09-15 21:56 marcohu
priority 5 2002-08-10 14:22 marcohu
assigned_to nobody 2002-08-08 21:18 marcohu