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 251807

Summary: formatting wraps lines even when all wrapping options are set to "never"
Product: java Reporter: elvenchakra
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description elvenchakra 2015-04-13 19:52:56 UTC
Steps to reproduce:

Set all of the drop downs in "wrapping" for java formatting to "never."
Create a switch block with case statements containing multiple statements.
Format the section.

Excepted results:

NetBeans fixes other formatting issues (including spaces mismatches, incorrect indentation, etc..) but doesn't break up lines.

Actual results:

NetBeans puts the first statement after the case on the same line, but puts all of the remaining statements (including very short ones like "break;") on a new line.