From 226df2ad7d2978d3d7400d94767a0503e495cf98 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 23 Mar 2021 09:27:16 +0000 Subject: [PATCH] Fix exporting of tiddlers that begin and end with double quotes --- core/wiki/macros/export.tid | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/wiki/macros/export.tid b/core/wiki/macros/export.tid index 629333ff8..c3256c431 100644 --- a/core/wiki/macros/export.tid +++ b/core/wiki/macros/export.tid @@ -6,25 +6,24 @@ $baseFilename$$(extension)$ \end \define exportButton(exportFilter:"[!is[system]sort[title]]",lingoBase,baseFilename:"tiddlers") -<$button popup=<> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<> selectedClass="tc-selected"> +<$vars hint={{{ [<__lingoBase__>addsuffix[Hint]get[text]] }}} caption={{{ [<__lingoBase__>addsuffix[Caption]get[text]] }}}> +<$button popup=<> tooltip=<> aria-label=<> class=<> selectedClass="tc-selected"> <$list filter="[match[yes]]"> {{$:/core/images/export-button}} <$list filter="[match[yes]]"> -<$text text={{$lingoBase$Caption}}/> +<$text text=<>/> -<$reveal state=<> type="popup" position="below" animate="yes"> +<$reveal state=<> type="popup" position="below" animate="yes">
<$set name="count" value={{{ [subfilter<__exportFilter__>count[]] }}}> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]"> <$list filter="[has[condition]subfilter{!!condition}limit[1]] ~[!has[condition]then[true]]" variable="ignore"> -<$set name="extension" value={{!!extension}}> <$button class="tc-btn-invisible"> -<$action-sendmessage $message="tm-download-file" $param=<> exportFilter=<<__exportFilter__>> filename=<>/> +<$action-sendmessage $message="tm-download-file" $param=<> exportFilter=<<__exportFilter__>> filename={{{ [<__baseFilename__>addsuffix{!!extension}] }}}/> <$action-deletetiddler $tiddler=<>/> <$transclude field="description"/> -