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.

Bug 74149 - Strange indentation behaviour
Summary: Strange indentation behaviour
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-29 14:25 UTC by ehucka
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2006-03-29 14:25:43 UTC
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.
Comment 1 Milan Kubec 2006-04-01 19:35:37 UTC
It's not only confusing but it makes writing code very difficult if your
indentation on empty lines is disapearing.
Comment 2 Daniel Prusa 2006-04-12 15:57:39 UTC
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
Comment 3 ehucka 2006-07-24 12:57:34 UTC
verified