11-28-2013 06:25 AM - edited 03-14-2019 12:48 PM
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.
Solved! Go to Solution.
11-28-2013 07:16 AM
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.
11-28-2013 07:16 AM
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.
11-28-2013 09:35 AM
Gergely, thanks for your help. I have solved my problem.
11-28-2013 10:41 AM
Hi, how did ypu solve it?
Thanks.
G.
Sent from Cisco Technical Support iPhone App
11-28-2013 11:55 AM
Hi,
I included the System.getProperty("line.separator") like you told me and I saved info in txt file and then I made export task in excel.
11-28-2013 10:28 PM
Hi,
alright, glad to hear that. Would you like to help other users to mark my answer as correct so they find the solution right away.
Thanks.
G.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide