I have a macro as below to show the title or caption of a tiddler based on 
the availability of caption filed

\define mac(tid)
[<$view tiddler=$tid$ field="caption">
<$view tiddler=$tid$ field="title"/>
</$view>]
\endEnter

Then I have several tiddlers like t-2016, t-2017, t-2018, t-2019. The two 
tiddler t-2017 and t-2018 also have c-2017 and c-2018 as caption.

Using the above macro as below give the below results

Note <<mac t-2017>> and <<mac t-2018>> and <<mac t-2019>> and  <<mac t-2016
>> give different result.

Result:

Note [c-2017] and [c-2018] and [ t-2019 ] and [ t-2016 ] give different 
result.

As you can see extra spaces are inserted when title is shown! What is the 
problem.

--Mohammad

-- 
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/67150ccc-f459-4553-bf8c-811dc5daab94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to