This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Strps to reproduce: 1. write a code for () {| 2. press enter - there should be for () { | } 3. move up and down with carret - indentation of empty line is correct 4. move carret up between brackets and write e.g. 'S' 5. move carret down - indentation of the empty line is removed for (S) { | } It is very confusing.
It's not only confusing but it makes writing code very difficult if your indentation on empty lines is disapearing.
The described behaviour was caused by introducing a new feature - automatical removal of trailing spaces. Since there are many complains on it, we will disable it and try to implement another solution (removal of trailing spaces on document save, see issue 13063 for more details). Fixed in trunk. /cvs/editor/libsrc/org/netbeans/editor/BaseDocument.java new revision: 1.129; previous revision: 1.128
verified