Hi,
If you want a new line you can use "\n"
Thanks Mohamed, but I tried numerous variations of this and none worked. I either got a syntax error or if it returned the content, it simply included the "\n" as part of the return and concatenated it as part of a string. Can you please provide an example illustrating the specific syntax to use?
Examples of the way I am receiving the data back are as follows:
Success\nResponse Status Code is:\n200
or
Response Data is:\n[issueFieldsGet.body content]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Mohamed. Apologies! This syntax does inf act appear to work fine if I send it to the log tab. However, it does not seem to work in the results window. Is the syntax different for returning the data on screen there than it is to the log?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using log is not the answer Tim looked in first place.
@Tim Bonney if U R still looking for answer to your original question:
build the strings for your log and result windows apart keeping in mind that:
example:
String logMessage = " All my lines are here:\n"
String htmlMessage = 'All my lines are here:<br/>
(1..10).each { i ->
logMessage = logMessage + "* Line ${i} \n"
htmlMessage = htmlMessage + "* Line ${i} <br/>"
}
log.info(logMessage)
htmlMessage
That being written, I strongly suggest to comment out console part (perhaps build a nice wrapper class?) to prevent polluting code like that in the production...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.