Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348824 - Format Source Code removes all blank lines except one. Need to have option to set number of blank lines to preserve.
Summary: Format Source Code removes all blank lines except one. Need to have option to...
Status: CLOSED DUPLICATE of bug 249444
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Emanuel Graf CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 22:03 EDT by neotheone222 CLA
Modified: 2011-06-10 04:45 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description neotheone222 CLA 2011-06-08 22:03:32 EDT
Build Identifier: M20100211-1343

Pressing Ctrl+Shift+F for format in CDT preserves only one blank line.

Reproducible: Always

Steps to Reproduce:
1. Suppose we have the following 3 functions each separated by 3 lines.
void
func1()
{
  //body
}



void
func2()
{
  //body
}



void
func3()
{
  //body
}

2. After using Ctrl+Shift+F, we get:
void
func1()
{
  //body
}

void
func2()
{
  //body
}

void
func3()
{
  //body
}

3. This feature is already present for Java IDE but not for C/C++ IDE.
Comment 1 Anton Leherbauer CLA 2011-06-10 04:45:43 EDT

*** This bug has been marked as a duplicate of bug 249444 ***