1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fix exporting tiddlers with double quoted titles

Fixes #4860
This commit is contained in:
jeremy@jermolene.com 2020-09-28 11:31:33 +01:00
parent ae13a0fee1
commit 59f233cd46
3 changed files with 3 additions and 9 deletions

View File

@ -3,7 +3,4 @@ tags: $:/tags/Exporter
description: {{$:/language/Exporters/CsvFile}} description: {{$:/language/Exporters/CsvFile}}
extension: .csv extension: .csv
\define renderContent() <$macrocall $name="csvtiddlers" filter=<<exportFilter>> format="quoted-comma-sep" $output="text/raw"/>
<$text text=<<csvtiddlers filter:"""$(exportFilter)$""" format:"quoted-comma-sep">>/>
\end
<<renderContent>>

View File

@ -3,7 +3,4 @@ tags: $:/tags/Exporter
description: {{$:/language/Exporters/JsonFile}} description: {{$:/language/Exporters/JsonFile}}
extension: .json extension: .json
\define renderContent() <$macrocall $name="jsontiddlers" filter=<<exportFilter>> $output="text/raw"/>
<$text text=<<jsontiddlers filter:"""$(exportFilter)$""">>/>
\end
<<renderContent>>

View File

@ -18,7 +18,7 @@ $baseFilename$$(extension)$
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]">
<$set name="extension" value={{!!extension}}> <$set name="extension" value={{!!extension}}>
<$button class="tc-btn-invisible"> <$button class="tc-btn-invisible">
<$action-sendmessage $message="tm-download-file" $param=<<currentTiddler>> exportFilter="""$exportFilter$""" filename=<<exportButtonFilename """$baseFilename$""">>/> <$action-sendmessage $message="tm-download-file" $param=<<currentTiddler>> exportFilter=<<__exportFilter__>> filename=<<exportButtonFilename """$baseFilename$""">>/>
<$action-deletetiddler $tiddler=<<qualify "$:/state/popup/export">>/> <$action-deletetiddler $tiddler=<<qualify "$:/state/popup/export">>/>
<$transclude field="description"/> <$transclude field="description"/>
</$button> </$button>