ink
ink copied to clipboard
Linebreak appearing where it shouldn't
The following produces a line-break between the "and" and the "bob".
Changing the "bob" function call inside the name function to just the string "bob" fixes the issue, so it's presumably something to do with the way the function is nested in a string inside a function.
Bill and {name()}.
-> END
=== function name()
~ temp x = "{bob()}"
{x}
== function bob()
bob
You've probably solved this, but try:
~ return {x}
instead of just {x}
The former returns the value to caller. While the later, logs the value, as if it's a new line.