From d8fd2f75d60760dd56ca0d4730994d63179f4b83 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Mon, 7 Oct 2019 19:50:30 +0200 Subject: [PATCH] Two missing whitespace trims for PageControls (#4296) * add whitespace trim to help button * add whitespace trim to new markdown button * Update help.tid --- plugins/tiddlywiki/help/help.tid | 2 ++ plugins/tiddlywiki/markdown/new-markdown.tid | 1 + 2 files changed, 3 insertions(+) diff --git a/plugins/tiddlywiki/help/help.tid b/plugins/tiddlywiki/help/help.tid index 2cdc12649..599ccf6a2 100644 --- a/plugins/tiddlywiki/help/help.tid +++ b/plugins/tiddlywiki/help/help.tid @@ -3,7 +3,9 @@ tags: $:/tags/PageControls caption: {{$:/core/images/help}} {{$:/language/Buttons/Help/Caption}} description: {{$:/language/Buttons/Help/Hint}} +\whitespace trim \define help-inner() +\whitespace trim <$reveal type="match" state="$:/config/ShowHelp" text="yes"> <$button set="$:/config/ShowHelp" setTo="no" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class="""$(tv-config-toolbar-class)$ tc-selected"""> <$list filter="[prefix[yes]]"> diff --git a/plugins/tiddlywiki/markdown/new-markdown.tid b/plugins/tiddlywiki/markdown/new-markdown.tid index 688ea9709..ff6d40c82 100755 --- a/plugins/tiddlywiki/markdown/new-markdown.tid +++ b/plugins/tiddlywiki/markdown/new-markdown.tid @@ -4,6 +4,7 @@ caption: {{$:/plugins/tiddlywiki/markdown/images/new-markdown-button}} {{$:/lang description: {{$:/language/Buttons/NewMarkdown/Hint}} list-after: $:/core/ui/Buttons/new-tiddler +\whitespace trim <$button tooltip={{$:/language/Buttons/NewMarkdown/Hint}} aria-label={{$:/language/Buttons/NewMarkdown/Caption}} class=<>> <$action-sendmessage $message="tm-new-tiddler" type="text/x-markdown"/> <$list filter="[prefix[yes]]">