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$
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$
$list>
@@ -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="<>">
<>
$list>
\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"/>
$list>
$set>
@@ -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="">