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 198217 - New Javadoc lines are aligned one space to the right - sporadic
Summary: New Javadoc lines are aligned one space to the right - sporadic
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 18:59 UTC by ftg314159
Modified: 2011-05-12 08:23 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 ftg314159 2011-04-29 18:59:13 UTC
This is strange, and I can't reproduce it reliably, but...

Occasionally when I am typing javadoc comments in the editor, hitting ENTER at the end of one line will add an empty line below starting with "* " as expected, but the asterisk will be one column to the right of the asterisk on the previous line.  In other words, suppose I have finished the first line below and hit ENTER; the result will look like this:
  /**
   *  First line of Javadoc
    * 

This doesn't happen reliably, but it appears that once it starts happening in a given file, it happens anywhere in the file (not just at the initial location) and it continues to happen even if you close and reopen the file, or even close and restart the IDE.

When this starts happening in one file it does *not* happen in other open files.  Moreover, prior to the first time this happens in a module, alignment is fine.  Then, out of the blue, you hit ENTER and the erroneous behavior starts.

This was absolutely not happening with 6.9.1.

I've searched through .netbeans/7.0 for files containing a filename for which it happens, but none of the hits seems to have anything to do with editor preferences specifically for that file.
Comment 1 ftg314159 2011-04-29 19:05:14 UTC
Just an addendum...

Sometimes it's one column, sometimes two, in different blocks of javadoc in the same file.  And if you type on the misaligned line and hit ENTER, the new line has its asterisk directly under the misaligned one, i.e. the error isn't additive from line to line.  Also, the incorrect indentation amount "sticks", i.e. if it indented by one column, subsequent added lines are indented by one column, and likewise for two columns.
Comment 2 Dusan Balek 2011-05-12 08:23:23 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/cdb2c2c6896b