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

All your suggestions, requests and ideas for future development
Post Reply
WingmanNZ
Posts: 12
Joined: 05 Sep 2013, 05:20

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

Post 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
WingmanNZ
Posts: 12
Joined: 05 Sep 2013, 05:20

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

Post 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('.')+']'}
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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('.')
:idea: Please read the FAQ and How to Request Help.
Post Reply