It may sound trivial, but what is a proper way to put a line break inside a string in SIL script?
I'm trying to add a multiline description to issue, but I don't want to use "\\" sign. I want a proper line break, so that when user will edit the comment he will see:
this is line one this is line two
but not:
this is line one \\ this is line two
Hi Blazej,
Try this one:
"string" + "\n" + "string"
Thanks, that's exactly what I've been looking for
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.
Hi,
does anyone have a solution for making two line breaks in a row? Like this:
Unfortunately /n/n/n does not work :(.
thanks
daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"This is line one\n\n\nthis is line four" should work
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.
If this used to work, I can't get it to work currently with JIra Description field
\n or \\ doesn't work for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jari,
Does it work when you try to put it into other text fields?
Paste your code here - maybe there is some error in the code itself, and we might find it together
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.
Hi Blazej,
My answer comes a little late, but you can also escape the slashes (like below):
"string\\\\string"
Best Regards,
Alexandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, that's what I've tried, but when user edits such comment he sees:
string\\string
And I want him to see:
string string
What is more annoying, double slash doesn't play well with other special markups. Fo example if I want to put a line between two lines I would define a script like this:
string my_comment = "String \\\\ ---- \\\\ String";
Yet, what I achieve is:
comment.PNG
The same thing done by the following code:
string my_comment = "String\n----\nString";
works properly:
comment2.PNG
So I guess "\n" > "\\\\"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I got your point.
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.