diff --git a/core/ui/SideBar/Open.tid b/core/ui/SideBar/Open.tid index 11febd460..1f84654cd 100644 --- a/core/ui/SideBar/Open.tid +++ b/core/ui/SideBar/Open.tid @@ -26,12 +26,12 @@ $button$
<$list filter="[list]" history=<> storyview="pop">
-<$macrocall $name="droppable-item" button="""<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini tc-small-gap-right">{{$:/core/images/close-button}}<$link to={{!!title}}><$view field="title"/>"""/> +<$macrocall $name="droppable-item" button="<$button message='tm-close-tiddler' tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class='tc-btn-invisible tc-btn-mini tc-small-gap-right'>{{$:/core/images/close-button}}<$link to={{!!title}}><$view field='title'/>"/>
<$tiddler tiddler="">
-<$macrocall $name="droppable-item" button="""<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><>"""/> +<$macrocall $name="droppable-item" button="<$button message='tm-close-all-tiddlers' class='tc-btn-invisible tc-btn-mini'><>"/>
diff --git a/core/wiki/macros/list.tid b/core/wiki/macros/list.tid index 302aa3b5d..a2dcd3167 100644 --- a/core/wiki/macros/list.tid +++ b/core/wiki/macros/list.tid @@ -57,6 +57,7 @@ tags: $:/tags/Macro \end \define list-tagged-draggable-drop-actions(tag) +\whitespace trim <$set name="order" filter="[<__tag__>tagging[]]"> diff --git a/core/wiki/macros/tag-picker.tid b/core/wiki/macros/tag-picker.tid index 8a48532b1..560035e5b 100644 --- a/core/wiki/macros/tag-picker.tid +++ b/core/wiki/macros/tag-picker.tid @@ -8,10 +8,9 @@ second-search-filter: [tags[]is[system]search:titlesort[]] \define delete-tag-state-tiddlers() <$action-deletetiddler $filter="[] [] []"/> \define add-tag-actions(actions,tagField:"tags") +\whitespace trim <$set name="tag" value={{{ [<__tiddler__>get[text]] }}}> -<$list filter="[!contains:$tagField$!match[]]" variable="ignore" emptyMessage=""" -<$action-listops $tiddler=<> $field=<<__tagField__>> $subfilter="-[]"/> -"""> +<$list filter="[!contains:$tagField$!match[]]" variable="ignore" emptyMessage="<$action-listops $tiddler=<> $field=<<__tagField__>> $subfilter='-[]'/>"> <$action-listops $tiddler=<> $field=<<__tagField__>> $subfilter="[]"/> $actions$ @@ -21,14 +20,16 @@ $actions$ \end \define clear-tags-actions-inner() -<$list filter="[has[text]] [has[text]]" variable="ignore" emptyMessage="""<>"""> +\whitespace trim +<$list filter="[has[text]] [has[text]]" variable="ignore" emptyMessage="<>"> <> \end \define clear-tags-actions() +\whitespace trim <$set name="userInput" value={{{ [get[text]] }}}> -<$list filter="[get[text]!match]" emptyMessage="""<>"""> +<$list filter="[get[text]!match]" emptyMessage="<>"> <$action-setfield $tiddler=<> text=<>/><$action-setfield $tiddler=<> text="yes"/> @@ -43,7 +44,7 @@ $actions$
<$macrocall $name="keyboard-driven-input" tiddler=<> storeTitle=<> refreshTitle=<> - selectionStateTitle=<> inputAcceptActions="""<$macrocall $name="add-tag-actions" actions=<<__actions__>> tagField=<<__tagField__>>/>""" + selectionStateTitle=<> inputAcceptActions="<$macrocall $name='add-tag-actions' actions=<<__actions__>> tagField=<<__tagField__>>/>" inputCancelActions=<> tag="input" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<> class="tc-edit-texteditor tc-popup-handle" tabindex=<> focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} filterMinLength={{$:/config/Tags/MinLength}} @@ -65,16 +66,16 @@ $actions$ <$reveal state=<> type="nomatch" text="" default="">
<$set name="userInput" value={{{ [get[text]] }}}> -<$list filter="[minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="""
{{$:/language/Search/Search/TooShort}}
""" variable="listItem"> +<$list filter="[minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="
{{$:/language/Search/Search/TooShort}}
" variable="listItem"> <$list filter=<> variable="tag"> -<$list filter="[addsuffix[-primaryList]] -[get[text]]" emptyMessage="""<$vars button-classes="tc-btn-invisible tc-tag-button-selected" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<>>{{||$:/core/ui/TagPickerTagTemplate}}"""> +<$list filter="[addsuffix[-primaryList]] -[get[text]]" emptyMessage="<$vars button-classes='tc-btn-invisible tc-tag-button-selected' actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<>>{{||$:/core/ui/TagPickerTagTemplate}}"> <$vars button-classes="tc-btn-invisible" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<>>{{||$:/core/ui/TagPickerTagTemplate}}
-<$list filter="[minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="""
{{$:/language/Search/Search/TooShort}}
""" variable="listItem"> +<$list filter="[minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="
{{$:/language/Search/Search/TooShort}}
" variable="listItem"> <$list filter=<> variable="tag"> -<$list filter="[addsuffix[-secondaryList]] -[get[text]]" emptyMessage="""<$vars button-classes="tc-btn-invisible tc-tag-button-selected" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<>>{{||$:/core/ui/TagPickerTagTemplate}}"""> +<$list filter="[addsuffix[-secondaryList]] -[get[text]]" emptyMessage="<$vars button-classes='tc-btn-invisible tc-tag-button-selected' actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<>>{{||$:/core/ui/TagPickerTagTemplate}}"> <$vars button-classes="tc-btn-invisible" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<>>{{||$:/core/ui/TagPickerTagTemplate}} @@ -90,7 +91,7 @@ $actions$ \define tag-picker(actions,tagField:"tags") \whitespace trim <$vars saveTiddler=<> palette={{$:/palette}}> -<$list filter="[match[]]" emptyMessage="""<$macrocall $name="tag-picker-inner" actions=<<__actions__>> tagField=<<__tagField__>>/>"""> +<$list filter="[match[]]" emptyMessage="<$macrocall $name='tag-picker-inner' actions=<<__actions__>> tagField=<<__tagField__>>/>"> <$set name="newTagNameTiddler" value=<>> <$macrocall $name="tag-picker-inner" actions=<<__actions__>> tagField=<<__tagField__>>/>