Bug 689 : AutoFormat array {..} error
Last modified: 2007-11-20 00:32




Status:
RESOLVED
Resolution:
DUPLICATE of bug 259
Priority:
P2
Severity:
normal

 

Reporter:
alphachapmtl
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-11-20 00:22
Using Processing 0129 Beta on Windows XP Pro

Each time I use Tools_AutoFormat, the right curly brace of some arrays moves 2
spaces to the right. After a while, I loose them to the far right.
I found a way around it by putting the right curly brace on the next line, but it is still
a bit annoying.

Load the following program in the editor, and use Tools_AutoFormat many times.
The arrays ok1 and ok2 are OK, but e1 and e2 are on the move.

int[] ok1={
1,2,3};

void setup() {
size(120,120);
noLoop();
int[] e1={
1,2,3};
int[] ok2={
1,2,3
};
}

void draw() {
int[] e2={
1,2,3};
}
Additional Comment #1 From fry 2007-11-20 00:32


*** This bug has been marked as a duplicate of 259 ***