Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316370

Summary: Inconsistent line endings for multi-line comments
Product: [Tools] CDT Reporter: Josh Kelley <joshkel>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: CLOSED DUPLICATE QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Josh Kelley CLA 2010-06-09 15:53:07 EDT
Build Identifier: 20100218-1602

When editing a source file with Windows-style line endings, multi-line C-style comments often create lines with Unix-style line endings.

Reproducible: Always

Steps to Reproduce:
1. Open a C or C++ source file that has Windows-style line endings.
2. On an empty line of source code that's not in the middle of a comment, type /*, then press Enter.  Eclipse will automatically expand this to three lines of code: "/*", " *", and "*/".
3. Click the "Show Whitespace Characters" button in the toolbar, and note that the second line (" *") has no carriage return.
Comment 1 Anton Leherbauer CLA 2010-06-10 03:40:23 EDT

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