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 - formatting wraps lines even when all wrapping options are set to "never"
Summary: formatting wraps lines even when all wrapping options are set to "never"
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-13 19:52 UTC by elvenchakra
Modified: 2015-04-13 19:52 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 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.