mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-02-25 17:40:58 -08:00
Trim "template" value in saveWiki()
* Safeguard the code from extraneous whitespaces in transcluded result.
This commit is contained in:
parent
fadf6252d4
commit
6cdc80085c
1 changed files with 2 additions and 2 deletions
|
|
@ -157,8 +157,8 @@ SaverHandler.prototype.saveWiki = function(options) {
|
|||
return false;
|
||||
}
|
||||
var variables = options.variables || {},
|
||||
template = options.template ||
|
||||
this.wiki.getTiddlerText("$:/config/SaveWikiButton/Template", "$:/core/save/all"),
|
||||
template = (options.template ||
|
||||
this.wiki.getTiddlerText("$:/config/SaveWikiButton/Template", "$:/core/save/all")).trim(),
|
||||
downloadType = options.downloadType || "text/plain",
|
||||
text = this.wiki.renderTiddler(downloadType,template,options),
|
||||
callback = function(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue