Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316370 - Inconsistent line endings for multi-line comments
Summary: Inconsistent line endings for multi-line comments
Status: CLOSED DUPLICATE of bug 289461
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 15:53 EDT by Josh Kelley CLA
Modified: 2010-06-10 03:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***