linebreak between Strings? [message #66130] |
Wed, 28 January 2009 10:36 |
Eclipse User |
|
|
|
Originally posted by: jgreen.upb.de
Hi,
is there a way to insert a line break between strings?
Something like 'line1 text'.concat('\n').concat('line2 text')
(which doesn't work)
Thanks for helping.
Joel
|
|
|
Re: linebreak between Strings? [message #66151 is a reply to message #66130] |
Wed, 28 January 2009 13:42 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Joel,
The OCL concrete syntax for strings is unspecified, alas.
Literally including a newline in your string literal doesn't work, either:
'line one
line two'
Perhaps http://bugs.eclipse.org/242880 should be prioritized for this
release (once the crazy deadlines at my day job pass).
There is some measure of code in the parser that is intended to process
Java-style escapes; it doesn't seem to be working.
cW
Joel Greenyer wrote:
> Hi,
> is there a way to insert a line break between strings?
> Something like 'line1 text'.concat('\n').concat('line2 text')
> (which doesn't work)
>
> Thanks for helping.
>
> Joel
|
|
|
Re: linebreak between Strings? [message #66172 is a reply to message #66151] |
Wed, 28 January 2009 15:25 |
Eclipse User |
|
|
|
Originally posted by: jgreen.upb.de
Christian W. Damus wrote:
> Hi, Joel,
>
> The OCL concrete syntax for strings is unspecified, alas.
>
> Literally including a newline in your string literal doesn't work, either:
>
> 'line one
> line two'
>
> Perhaps http://bugs.eclipse.org/242880 should be prioritized for this
> release
That's it, I didn't see the bug.
> (once the crazy deadlines at my day job pass).
I know, sometimes work keeps you from doing useful things ;)
>
> There is some measure of code in the parser that is intended to process
> Java-style escapes; it doesn't seem to be working.
>
> cW
>
> Joel Greenyer wrote:
>> Hi,
>> is there a way to insert a line break between strings?
>> Something like 'line1 text'.concat('\n').concat('line2 text')
>> (which doesn't work)
>>
>> Thanks for helping.
>>
>> Joel
|
|
|
Powered by
FUDForum. Page generated in 0.03047 seconds