@PaulRB
back to analysis,
- Did you try to find out at which length the unintended line break happens?
- Or does it break on a certain character?
- any tests done with other IDE yet?
I can confirm the 0.22 version on win7/64 shows this bug too
- What I see it inserts a '\n' on position 136 thereby not just breaking the comment, but also removing one char (e from next)
- if I use a var with a long name it does not break at position 136 nor does it break long code lines @136
void loop() {
int thisvarislong_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = 0;
int xxxxxxx = 0;
int y = xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + xxxxxxx + 1;
//This comment is so long that if you perform Auto Format on it, the last part of the comment will be wrapped onto the start of the n
xt line and cause a compile error
}
So it seems long comments are the only part affected