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

Bug 321518

Summary: [editor] New-line in string handling is asymmetric
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact: Ed Willink <ed>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix for arbitrary strings none

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