AnsweredAssumed Answered

How to embed a carriage return in a string?

Question asked by J-Bo on Apr 1, 2011
Latest reply on Dec 20, 2013 by Mayank.Joshi
I've been working on a gel script that loops and builds a list of resources into a variable for later inclusion into the body of an email. This is all working fine except I haven't been able to include a carriage return between the resouce names, they come out as one long string.

Here is an example of some code I've tried
<core:set value="${emailResNameList + CR + resrow[0]} \n" var="emailResNameList"/> 
The CR variable is a string where I've just typed a CR into the value. The \n just ends up getting included in the email text. I've tried just typing a return at the end of the string concatenation, breaking the code onto another line. It all runs clean, it just doesn't work.

So, anyone found a way to include a CR when concatenating a bunch of values?