Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321518 - [editor] New-line in string handling is asymmetric
Summary: [editor] New-line in string handling is asymmetric
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: OCL Inbox CLA
QA Contact: Ed Willink CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-02 11:28 EDT by Ed Willink CLA
Modified: 2011-05-27 03:13 EDT (History)
0 users

See Also:


Attachments
Fix for arbitrary strings (15.99 KB, patch)
2010-08-04 15:26 EDT, Ed Willink CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2010-08-02 11:28:44 EDT
A new line in an OCLinEcore annotation value is consistently written out as &xA; which is read in and converted to \n.

Probably better to prohibit new lines in strings, or treat them as a multi-string concatenator.
Comment 1 Ed Willink CLA 2010-08-04 15:26:32 EDT
Created attachment 175879 [details]
Fix for arbitrary strings

Attached allows

A concatenation of quoted strings as an OCLinEcore annotation value.

Interprets 

'x
y'

as synonym for 'x\n' 'y'

Introduces support for \u Unicode characters as per OCL specification.
Comment 2 Ed Willink CLA 2010-08-17 17:06:54 EDT
Committed to HEAD for 3.1.0M2 and to R3_0_maintenance for 3.0.1RC2.
Comment 3 Ed Willink CLA 2011-05-27 03:13:30 EDT
Closing