On Wednesday, November 25, 2020 at 11:58:13 AM UTC-8 W Yan wrote:
> For example, {{{ [{!!field}split[[]join[ ]] }}} seems to work find but {{{
> [{!!field}split[]]join[ ]] }}} is giving me syntax errors. So [ works but ]
> doesn't - how should I handle this?
>
The problem is that the first close bracket, "]" is being recognized as the
ending delimiter for the split[...] operator. The result is that the
second close bracket is left behind as invalid filter syntax.
A workaround is to define a variable that contains the text of the
parameter for the split operator and then use the variable reference in the
filter, rather than the literal [...] syntax.
Something like this:
<$vars closebracket="]">
{{{ [{!!field}split<closebracket>join[ ]] }}}
</$vars>
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/ebd11237-f352-4b67-87e9-2d3676de0747n%40googlegroups.com.