Hello,
I'm trying to create a scripted post function to add a customized comment which gets the last comment and adds it to a string. I succeeded to display colors and bold but when i try to start a new line it's not working.
I followed this Wiki page and I added // but it's not working.
Is there anyone familiar with this customization ?
I use \n to create new lines in scripted comments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works to and would be my primary usage as well, but tried to stay related to the wiki markup here :)
As long as it works :p
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nessrine Hafi ,
the wiki rendering for a newline is actually
\\
But If you want it in a string scripted, the \ is used for an escape so the next character is printed literally.
So a new line in a string for a comment would be like this (twice escaping and twice printing):
final String commentBody = "The \\\\ text for your comment, which can include specific value ..."
Hope this helps!
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Tessa Tuteleers
It was very helpful. I can now start a new line :) thank you and have a nice day
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.