Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349513 - [painting] Non-breaking spaces are not clearly identified in the editor
Summary: [painting] Non-breaking spaces are not clearly identified in the editor
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.1   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 19:47 EDT by Alex Broadwin CLA
Modified: 2011-06-16 02:08 EDT (History)
1 user (show)

See Also:


Attachments
Test file (65 bytes, text/x-java)
2011-06-16 02:08 EDT, Dani Megert CLA
no flags Details

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