When using a macro and passing multiline content in a parameter;
<<mymacro '
Block of text
Over more than one line
'>>
The above is easier to read but there is a newline after the first ', and before the last ' but I am not concerned with the last.
I am wondering if any one has a simple method to remove the first “line” (possibly if blank) from the parameter in the macro, whist keeping the rest in its current block format?
Nice catch, … but I think the trim[] functions would be a bit more performant. …
I wanted to write, that tirm[] uses the javascript builtin .trim() functions, just to find out, that we use some older code … which we should probably change. I’ll create an issue at GH