Bug 160915 - Copying a single line from text editor to Outlook results in blue background
Summary: Copying a single line from text editor to Outlook results in blue background
Status: RESOLVED DUPLICATE of bug 86503
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 14:43 EDT by Andre John Mas CLA
Modified: 2006-10-18 03:37 EDT (History)
0 users

See Also:


Attachments
Selected text in Eclipse (33.11 KB, image/png)
2006-10-17 10:02 EDT, Andre John Mas CLA
no flags Details
Text pasted into Outlook (32.81 KB, image/png)
2006-10-17 10:02 EDT, Andre John Mas CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre John Mas CLA 2006-10-13 14:43:45 EDT
I have the following issue with CDT 3.1:

 - Copying a text from a Java file and pasting it in an e-mail in Outlook results in formatted text with a white background
 - Copying a text from a C/C++ file and pasting it in an e-mail in Outlook results in formatted text with a dark blue background, which renders the text undreadable

The first is what I consider correct behaviour, while the second isn't. I suspect that a wrong value is being applied, or is not set, to the data added to the clipboard.
Comment 1 Anton Leherbauer CLA 2006-10-16 04:31:26 EDT
Works for me. Could you give more details about what and how you have done?
Note that clipboard copy is different when folding is enabled and the selected text contains a folded region. In this case no colors and styles are copied (this is true for both editors).
Does the behaviour depend on the text selection you are copying?
Did you paste into an HTML, rich text or plain text e-mail or did you create a new e-mail by pasting directly into Outlook?
Are there any settings in your Outlook that might account for the difference?
Comment 2 Andre John Mas CLA 2006-10-16 17:54:26 EDT
Seems to happen if you start the selection within a keyword.
Comment 3 Anton Leherbauer CLA 2006-10-17 03:29:28 EDT
I see that the current line highlighting also appears in the e-mail when the selection spans only one line, but it is the usual light blue, rather than a dark blue background. Actually, the text appears exactly as in the editor, including any background highlighting (e.g. search result annotations).
Could you provide screenshots of the editor and the e-mail?
Comment 4 Andre John Mas CLA 2006-10-17 10:02:09 EDT
Created attachment 52114 [details]
Selected text in Eclipse
Comment 5 Andre John Mas CLA 2006-10-17 10:02:50 EDT
Created attachment 52115 [details]
Text pasted into Outlook
Comment 6 Andre John Mas CLA 2006-10-17 10:04:05 EDT
I confirm that the issue is related to single line selects and to keyword based selects as I previously thought. Mulitple lines don't have this issue, so at least there is a workaround. I also noticed that it also affects Java documents in Eclipse 3.2, so it is probably an issue with the base Editor, on which CDT depends.

The two attachments show what the issue looks like.
Comment 7 Anton Leherbauer CLA 2006-10-18 03:28:38 EDT
Ok, in this case I'll redirect this to Platform/Text as it seems to happen with any Eclipse text editor.
Comment 8 Dani Megert CLA 2006-10-18 03:37:46 EDT

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