From 0bedb46e8a2b983a5c57d85771cb1343f082e41e Mon Sep 17 00:00:00 2001 From: pmario Date: Sat, 10 Feb 2024 17:34:31 +0100 Subject: [PATCH] change inline docs. Move \function tf.toc-stateTitle() up in the code near it's first use --- core/wiki/macros/toc.tid | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid index 589f827d6..7394577c9 100644 --- a/core/wiki/macros/toc.tid +++ b/core/wiki/macros/toc.tid @@ -2,17 +2,17 @@ title: $:/core/macros/toc tags: $:/tags/Macro \whitespace trim @@ -39,10 +39,11 @@ because it is realatively easy to debug. \end - + \procedure toc-open-icon() $:/core/images/down-arrow \procedure toc-closed-icon() $:/core/images/right-arrow + \procedure toc-hideField() toc-hide \procedure toc-includeField() toc-include \procedure toc-filterField() toc-filter @@ -55,7 +56,7 @@ because it is realatively easy to debug. \function tf.toc-itemClass() [] [] [] [] +[join[ ]] - + \function tf.toc-getHideText() [get] \function tf.toc-hideIsYes() [format:titlelist[]] @@ -136,6 +137,8 @@ v5.3.4 itemClassFilter has been replaced by tf.toc-itemClassFilter see: tf.toc-i :else[!is[blank]thenelse] \end +\function tf.toc-stateTitle() [[$:/state/toc]] [] "/" [] +[join[]] + \procedure toc-openBranch(path,currentTiddler,manual:"no") \procedure recursiveOpen(exclude, path) @@ -202,8 +205,6 @@ v5.3.4 itemClassFilter has been replaced by tf.toc-itemClassFilter see: tf.toc-i <% endif %> \end -\function tf.toc-stateTitle() [[$:/state/toc]] [] "/" [] +[join[]] - \procedure toc-linked-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate) <$qualify name="toc-state" title=<> >
  • >> @@ -297,7 +298,6 @@ Shows an expandable toc. Item always have an open/close chevron tag=<> sort=<> exclude=<> path=<> captionField=<> tagField=<> parentField=<> itemTemplate=<> - /> <% endif %>
  • @@ -419,4 +419,4 @@ it will open the tiddler in the view area of the same tiddler itemTemplate=<> /> -\end +\end.