Page 1 of 1

Cannot use .space() with the {tags} option

Posted: 12 Jan 2017, 22:02
by WingmanNZ
I have trying to use the following,

Code: Select all

{'.'+tags.space('.')}
to replace any spaces in the {tags} param with a fullstop.

Currently I get an error in the Format editor

Re: Cannot use .space() with the {tags} option

Posted: 12 Jan 2017, 22:27
by WingmanNZ
Doing this seems to hack around the error. but I lose the combining of things such as "Extended Collector's Edition"

Code: Select all

{'.['+tags.join('').space('.')+']'}

Re: Cannot use .space() with the {tags} option

Posted: 13 Jan 2017, 04:15
by rednoah
String.space() is only defined for String objects, and not List objects.

e.g.

Code: Select all

".$tags".space('.')

Code: Select all

'.' + tags.join(' ').space('.')