For completeness, I should also show how I'm calling this macro:

The date of the event was <$macrocall $name="date-str" date={{!!mydate}}/>.






On Tuesday, July 16, 2019 at 5:11:24 PM UTC-7, Damon Pritchett wrote:
>
> Hello all you helpful folks. 
>
> I'm having a little nuisance with a macro that I'm using which is shown 
> below:
>
> \define date-str(date) 
> <$list filter="[[$date$]splitbefore[-]]" variable=x >
> <$list filter="[[$date$]removeprefix<x>splitbefore[-]removesuffix[-]]" 
> variable=m>
> <$list filter="[[data-months]getindex<m>]" variable="mname">
> <$list filter="[[$date$]splitbefore[-]removesuffix[-]]" variable=y>
> <$list filter="[[$date$]removeprefix<x>removeprefix<m>removeprefix[-]]" 
> variable=d>
> <<mname>> <<d>>, <<y>>
> </$list>
> </$list>
> </$list>
> </$list>
> </$list>
> \end
>
> The macro works great except that there is a space at the end of the final 
> result that I can't figure out how to get rid of. Is this just a result of 
> using a macro or is there a change I can make so that the trailing space 
> isn't present?
>
> Many thanks in advance,
>
> Damon
>
>
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1981769e-8199-4f9e-9399-e30932b7a062%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to