From 291e3a42b529e6494ea75ca6e98974cfe3aefe28 Mon Sep 17 00:00:00 2001 From: pmario Date: Thu, 8 Feb 2024 14:44:34 +0100 Subject: [PATCH] allow toc-filter fields to created open/close chevrons --- core/wiki/macros/toc.tid | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid index 1bd293157..65dd30966 100644 --- a/core/wiki/macros/toc.tid +++ b/core/wiki/macros/toc.tid @@ -124,14 +124,18 @@ v5.3.4 itemClassFilter has been replaced by tf.toc-itemClassFilter \procedure toc-tagChildFilter() [tag] -\function tf.toc-hasChildren() [!is[blank]then] :else[!is[blank]thenelse] +\function tf.toc-hasChildren() + [!is[blank]then] + :else[!is[blank]thenelse] +\end \procedure toc-openBranch(path,currentTiddler,manual:"no") \procedure recursiveOpen(exclude, path) <$let path={{{ [] "/" [] +[join[]] }}}> + <$list filter="[subfilter] [subfilter] -[] -[subfilter]" > - <% if [subfilter] %> + <% if [subfilter] [subfilter] -[] -[subfilter] %> <$set name="_excluded" filter="[subfilter] []"> <$qualify name="toc-state" title=<> > @@ -261,7 +265,7 @@ Shows an expandable toc. Item always have an open/close chevron \end -\function tf.toc-curTidInclude() [get] +\function tf.toc-curTidInclude() [get] [get] \procedure toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate) <$qualify name="toc-state" title=<>>