Page 1 of 1

listformat issue

Posted: 23 Jul 2018 15:40
by anuraag
I am using a script

Code: Select all

a = "abcd "; // space after abcd
b = "efgh "; // again space
c = "ijkl "; // again
e = newList(a, b, c);
f = "{e, listformat}"
Result contains extra quote marks

Code: Select all

"abcd "
"efgh "
"ijkl "
expected result

Code: Select all

abcd
efgh
ijkl
Is this by design of automagic?

Re: listformat issue

Posted: 23 Jul 2018 18:09
by Desmanto
Probably a known issue with listformat, I encounter this several times. When you have space at the end of the string or newline char inside the list, it will be quoted. I am creating a flow to sort and auto double quote multiple lines. I don't use listformat, but use join() instead. This gives the same effect as listformat, except you can specify what is the joiner (in this case is newline char).

Code: Select all

f = join(e, "\n");

Re: listformat issue

Posted: 23 Jul 2018 23:53
by anuraag
Thanks Desmanto