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 254739

Summary: Automatic documentation comment block has inconsistent whitespace
Product: cnd Reporter: ProjectOrc
Component: EditorAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED FIXED    
Severity: normal CC: ProjectOrc
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description ProjectOrc 2015-08-26 00:59:04 UTC
The automatic documentation comment block has inconsistent whitespace compared to the editor settings.

Typing /** on the line before a C++ function then pressing Enter will automatically create a comment block and populate it with parameters in a Doxygen or Javadoc style.

The white space generated is incorrectly using spaces when it should be using tabs. This can be quite tedious to subsequently fix.

This is currently produced:
		/**
		 * 
         * @param node blah blah
         */

That is:

TABS/**
TABS+ONE_SPACE* 
SPACES* @param node
SPACES*/

Expected:

TABS/**
TABS+ONE_SPACE* 
TABS+ONE_SPACE* @param node
TABS+ONE_SPACE*/

Note:

The current IDE settings are set to use tabs and not spaces for tabs.


Potentially related:

- Bug 33334 - Auto-generated code/documentation disregard editor settings
Comment 1 Alexander Simon 2015-09-04 10:09:35 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/35c745cdef05
Comment 2 Quality Engineering 2015-09-05 03:04:04 UTC
Integrated into 'main-silver', will be available in build *201509050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/35c745cdef05
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #254739 Automatic documentation comment block has inconsistent whitespace