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.
[recent dev builds] For XML documents, the indentation engine does not work. Therefore if you copy and paste text, it is wrongly "undented". E.g. you start with <foo> <bar/> </foo> Copy the whole line containing <bar/> and paste it right after the first one. Expect: <foo> <bar/> <bar/> </foo> but get: <foo> <bar/> <bar/> </foo> I.e. the entire selection when pasted is always aligned to column 0. This is worse than doing nothing - at least before, the indentation was often right to begin with, and if it wasn't, you could select the pasted block and use Ctrl-D or Ctrl-T some number of times to correct it. Now all the indentation is lost, so e.g. after pasting the middle three lines in <foo> <bar> <baz/> </bar> </foo> it takes that much more work to correct it to <foo> <bar> <baz/> </bar> </foo> e.g. by selecting the three lines, pressing Ctrl-T, then selecting <baz/> and pressing Ctrl-T again.
There was a bug in the indentation function. Fixed so that the indentation is a homomorphism on formating engines :-D In other words, if the formatter does nothing, so does the indentation. Checked in 1.101 +2 -3 editor/libsrc/org/netbeans/editor/BaseKit.java
Don't forget target milestone.
Verified