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

Bug 349513

Summary: [painting] Non-breaking spaces are not clearly identified in the editor
Product: [Eclipse Project] Platform Reporter: Alex Broadwin <alex>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: trivial    
Priority: P3 CC: daniel_megert
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Test file none

Description Alex Broadwin CLA 2011-06-15 19:47:31 EDT
Build Identifier: 

Currently a non-breaking space (nbsp) is not clearly different from a space in the editor. As such it is possible to have two strings which appear exactly equal, but are in fact not.

XCode handles this by rendering it as a space with a small dot in it. 

Reproducible: Always

Steps to Reproduce:
1. Create a non=breaking space using a hex editor or by copying one out of a browser. 

2. Paste the space in the editor, observe how breaking-space-like it is.
Comment 1 Dani Megert CLA 2011-06-16 02:07:09 EDT
This works for me using 3.7 RC4: You can enable to show whitespace and then normal whitespace will be rendered with a dot but non-breaking ones will not get a dot.
Comment 2 Dani Megert CLA 2011-06-16 02:08:40 EDT
Created attachment 198063 [details]
Test file