Can't remove whitespace in rythm engine

88 Views Asked by At

I am using the rythmengine.

The output I want is: x=prefix:value without any whitespaces.

@def test(String param){
@{param="prefix:"+param} @param
}
1
2  x=@test("value")
3

output is: 2 x= prefix:value

@def test(String param){
@{param="prefix:"+param}@param
}
1
2  x=@test("value")
3

output is: 2 x=param

This seems like a bug. Does anyone know a solution or workaround?

1

There are 1 best solutions below

0
On

Try the following code on http://fiddle.rythmengine.org/#/editor:

@def test(String param){ @{param="prefix:"+param}@@param } 1 2 x=@test("value") 3