diff --git a/core/language/en-GB/Help/default.tid b/core/language/en-GB/Help/default.tid index 0a8fce44c..1ca0926a9 100644 --- a/core/language/en-GB/Help/default.tid +++ b/core/language/en-GB/Help/default.tid @@ -3,6 +3,7 @@ title: $:/language/Help/default \define commandTitle() $:/language/Help/$(command)$ \end +\whitespace trim ``` usage: tiddlywiki [] [-- [...]...] ``` @@ -11,7 +12,9 @@ Available commands:
    <$list filter="[commands[]sort[title]]" variable="command"> -
  • <$link to=<>><$macrocall $name="command" $type="text/plain" $output="text/plain"/>: <$transclude tiddler=<> field="description"/>
  • +
  • <$link to=<>><$macrocall $name="command" $type="text/plain" $output="text/plain"/>: + +<$transclude tiddler=<> field="description"/>
diff --git a/core/ui/EditTemplate/body-editor.tid b/core/ui/EditTemplate/body-editor.tid index 4897aff77..374567acd 100644 --- a/core/ui/EditTemplate/body-editor.tid +++ b/core/ui/EditTemplate/body-editor.tid @@ -1,5 +1,7 @@ title: $:/core/ui/EditTemplate/body/editor +\whitespace trim + <$edit field="text" diff --git a/core/ui/EditTemplate/body/default.tid b/core/ui/EditTemplate/body/default.tid index f182c69bf..9f98efcba 100644 --- a/core/ui/EditTemplate/body/default.tid +++ b/core/ui/EditTemplate/body/default.tid @@ -8,9 +8,13 @@ $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ <$action-popup $state=<> $coords="(0,0,0,0)" $floating="yes"/> \end -<$set name="edit-preview-state" value={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] }}}> -<$vars importTitle=<> importState=<> > -<$dropzone importTitle=<> autoOpenOnImport="no" contentTypesFilter={{$:/config/Editor/ImportContentTypesFilter}} class="tc-dropzone-editor" enable={{{ [{$:/config/DragAndDrop/Enable}match[no]] :else[subfilter{$:/config/Editor/EnableImportFilter}then[yes]else[no]] }}} filesOnly="yes" actions=<> ><$reveal stateTitle=<> type="match" text="yes" tag="div"> +\whitespace trim +<$let + edit-preview-state={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] }}} + importTitle=<> + importState=<> > +<$dropzone importTitle=<> autoOpenOnImport="no" contentTypesFilter={{$:/config/Editor/ImportContentTypesFilter}} class="tc-dropzone-editor" enable={{{ [{$:/config/DragAndDrop/Enable}match[no]] :else[subfilter{$:/config/Editor/EnableImportFilter}then[yes]else[no]] }}} filesOnly="yes" actions=<> > +<$reveal stateTitle=<> type="match" text="yes" tag="div">
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/> @@ -34,5 +38,4 @@ $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ - - + diff --git a/core/ui/EditTemplate/controls.tid b/core/ui/EditTemplate/controls.tid index e2dcab626..3e2f5e3f3 100644 --- a/core/ui/EditTemplate/controls.tid +++ b/core/ui/EditTemplate/controls.tid @@ -4,6 +4,7 @@ tags: $:/tags/EditTemplate \define config-title() $:/config/EditToolbarButtons/Visibility/$(listItem)$ \end +\whitespace trim
<$view field="title"/> <$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<> text="hide"><$transclude tiddler=<>/> diff --git a/core/ui/EditTemplate/shadow.tid b/core/ui/EditTemplate/shadow.tid index 7bdff4e27..3ae3e0a1f 100644 --- a/core/ui/EditTemplate/shadow.tid +++ b/core/ui/EditTemplate/shadow.tid @@ -3,10 +3,12 @@ tags: $:/tags/EditTemplate \define lingo-base() $:/language/EditTemplate/Shadow/ \define pluginLinkBody() +\whitespace trim <$link to="""$(pluginTitle)$"""> <$text text="""$(pluginTitle)$"""/> \end +\whitespace trim <$list filter="[all[current]get[draft.of]is[shadow]!is[tiddler]]"> <$list filter="[all[current]shadowsource[]]" variable="pluginTitle"> diff --git a/core/ui/EditTemplate/title.tid b/core/ui/EditTemplate/title.tid index daac829f6..5228ad7c0 100644 --- a/core/ui/EditTemplate/title.tid +++ b/core/ui/EditTemplate/title.tid @@ -1,6 +1,7 @@ title: $:/core/ui/EditTemplate/title tags: $:/tags/EditTemplate +\whitespace trim <$edit-text field="draft.title" class="tc-titlebar tc-edit-texteditor" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}} cancelPopups="yes"/> <$vars pattern="""[\|\[\]{}]""" bad-chars="""`| [ ] { }`"""> @@ -9,7 +10,7 @@ tags: $:/tags/EditTemplate
-{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}} +{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}
@@ -23,7 +24,7 @@ tags: $:/tags/EditTemplate
-{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}: <$link to={{!!draft.title}} /> +{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}: <$link to={{!!draft.title}} />
@@ -33,18 +34,22 @@ tags: $:/tags/EditTemplate <$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}> -<$checkbox tiddler="$:/config/RelinkOnRename" field="text" checked="yes" unchecked="no" default="no"> {{$:/language/EditTemplate/Title/Relink/Prompt}} +<$checkbox tiddler="$:/config/RelinkOnRename" field="text" checked="yes" unchecked="no" default="no"> {{$:/language/EditTemplate/Title/Relink/Prompt}} <$list filter="[titlebacklinks[]limit[1]]" variable="listItem"> <$vars stateTiddler=<> > <$reveal type="nomatch" state=<> text="show"> -<$button set=<> setTo="show" class="tc-btn-invisible">{{$:/core/images/right-arrow}} +<$button set=<> setTo="show" class="tc-btn-invisible"> +{{$:/core/images/right-arrow}} + <> <$reveal type="match" state=<> text="show"> -<$button set=<> setTo="hide" class="tc-btn-invisible">{{$:/core/images/down-arrow}} +<$button set=<> setTo="hide" class="tc-btn-invisible"> +{{$:/core/images/down-arrow}} + <> diff --git a/core/ui/ViewTemplate/body/import.tid b/core/ui/ViewTemplate/body/import.tid index 93018f627..a456e1a4f 100644 --- a/core/ui/ViewTemplate/body/import.tid +++ b/core/ui/ViewTemplate/body/import.tid @@ -3,6 +3,7 @@ title: $:/core/ui/ViewTemplate/body/import \define lingo-base() $:/language/Import/ \define confirmCancel() +\whitespace trim <$action-confirm $message={{$:/language/Import/Listing/Cancel/Warning}} > <$action-deletetiddler $tiddler=<>/> <$action-sendmessage $message="tm-close-tiddler" title=<>/> @@ -10,14 +11,18 @@ title: $:/core/ui/ViewTemplate/body/import \end \define buttons() +\whitespace trim <$button actions=<> ><> + <$button message="tm-perform-import" param=<>><> -<> <$select tiddler="$:/state/importpreviewtype" default="$:/core/ui/ImportPreviews/Text"> + +<> <$select tiddler="$:/state/importpreviewtype" default="$:/core/ui/ImportPreviews/Text"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]"> \end +\whitespace trim <$list filter="[all[current]field:plugin-type[import]]"> diff --git a/core/ui/ViewTemplate/body/plugin.tid b/core/ui/ViewTemplate/body/plugin.tid index decbfaf1a..a061cabd6 100644 --- a/core/ui/ViewTemplate/body/plugin.tid +++ b/core/ui/ViewTemplate/body/plugin.tid @@ -1,5 +1,6 @@ title: $:/core/ui/ViewTemplate/body/plugin +\whitespace trim
<$let plugin-type={{!!plugin-type}} default-popup-state="yes" diff --git a/core/ui/ViewTemplate/classic.tid b/core/ui/ViewTemplate/classic.tid index 4b1ab2553..5445b20b0 100644 --- a/core/ui/ViewTemplate/classic.tid +++ b/core/ui/ViewTemplate/classic.tid @@ -2,6 +2,7 @@ title: $:/core/ui/ViewTemplate/classic tags: $:/tags/ViewTemplate $:/tags/EditTemplate \define lingo-base() $:/language/ClassicWarning/ +\whitespace trim <$list filter="[all[current]type[text/x-tiddlywiki]]">
diff --git a/core/ui/ViewTemplate/tags.tid b/core/ui/ViewTemplate/tags.tid index bc1de08da..d1f4e55c9 100644 --- a/core/ui/ViewTemplate/tags.tid +++ b/core/ui/ViewTemplate/tags.tid @@ -1,6 +1,7 @@ title: $:/core/ui/ViewTemplate/tags tags: $:/tags/ViewTemplate +\whitespace trim <$reveal type="nomatch" stateTitle=<> text="hide" tag="div" retain="yes" animate="yes">
<$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/>
diff --git a/core/wiki/macros/image-picker.tid b/core/wiki/macros/image-picker.tid index 186fe3473..464a53e7b 100644 --- a/core/wiki/macros/image-picker.tid +++ b/core/wiki/macros/image-picker.tid @@ -5,22 +5,23 @@ title: $:/core/macros/image-picker type: text/vnd.tiddlywiki \define image-picker-thumbnail(actions) -<$button tag="a" tooltip="""$(imageTitle)$"""> -$actions$ -<$transclude tiddler=<>/> - +<$button tag="a" tooltip="""$(imageTitle)$""">$actions$<$transclude tiddler=<>/> \end \define image-picker-list(filter,actions) +\whitespace trim <$list filter="""$filter$""" variable="imageTitle"> <$macrocall $name="image-picker-thumbnail" actions="""$actions$"""/> + \end \define image-picker(actions,filter:"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]",subfilter:"") +\whitespace trim
<$vars state-system=<>> <$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="hide"> + {{$:/language/SystemTiddlers/Include/Prompt}} <$reveal state=<> type="match" text="hide" default="hide" tag="div">