cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
614
Views
0
Helpful
5
Replies

character <enter> in script

juan_cye_ccna
Beginner
Beginner

Hi,

I am developing a CCX 8.5 premium script and  I need to add a "new line" character in a string variable and  then to save this info inside a xlm file but so far i have not  made it. I have tried with \n\r but not, whole string value stays in the same line, for example:

STRING temp

DOC outputdoc

temp = D[now] + T[now] + "new line"

set outputdoc = temp

how do i do to get that?

Thanks in advance.

1 Accepted Solution

Accepted Solutions

Gergely Szabo
Advocate
Advocate

Hi,

well, you don't really need a newline character in an XML.

However, you can use System.getProperty("line.separator"). But again, I don't really see the use of it. Basically everything is a binary stream and it's up to the final rendering how it is presented.

G.

View solution in original post

5 Replies 5

Gergely Szabo
Advocate
Advocate

Hi,

well, you don't really need a newline character in an XML.

However, you can use System.getProperty("line.separator"). But again, I don't really see the use of it. Basically everything is a binary stream and it's up to the final rendering how it is presented.

G.