ink icon indicating copy to clipboard operation
ink copied to clipboard

Linebreak appearing where it shouldn't

Open joningold opened this issue 5 years ago • 1 comments

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

joningold avatar Jun 13 '19 20:06 joningold

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.

danielheim avatar Jan 09 '22 10:01 danielheim