New here button not working in toc macro line items

When I put the following into the $:/core/macros/toc tiddler, the button works, but multiple word titles show up as one-tag-per-word. Something in the toc macro code is keeping it from producing a tiddler with one multiple word tag. Any ideas?

<$button class="tc-btn-invisible"><$action-sendmessage
$message="tm-new-tiddler" tags={{!!title}}/> ^^{{$:/core/images/new-button}}^^</$button>

Change

tags={{!!title}}

to

tags={{{ [{!!title}format:titlelist[]] }}}

If the current title contains spaces, this will add surrounding doubled square brackets, which will tell the tags field to treat the entire title as a single value.

-e

1 Like

That worked perfectly! Thanks Eric!