From 36a43c3f4101227d73ce4c7219827029688f04e3 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 9 Oct 2014 13:08:11 +0100 Subject: [PATCH] Ensure new-here tag is quoted Fixes problem with new here on tiddlers with spaces in their title. Thanks to @simonbaird Fixes #956 --- core/ui/ViewToolbar/new-here.tid | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/ui/ViewToolbar/new-here.tid b/core/ui/ViewToolbar/new-here.tid index df0e86690..14390dada 100644 --- a/core/ui/ViewToolbar/new-here.tid +++ b/core/ui/ViewToolbar/new-here.tid @@ -3,8 +3,9 @@ tags: $:/tags/ViewToolbar caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}} description: {{$:/language/Buttons/NewHere/Hint}} +\define newHereButton() <$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<>> -<$action-sendmessage $message="tm-new-tiddler" tags=<>/> +<$action-sendmessage $message="tm-new-tiddler" tags="[[$(currentTiddler)$]]"/> <$list filter="[prefix[yes]]"> {{$:/core/images/new-here-button}} @@ -12,3 +13,5 @@ description: {{$:/language/Buttons/NewHere/Hint}} <$text text={{$:/language/Buttons/NewHere/Caption}}/> +\end +<> \ No newline at end of file