mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40:29 +00:00
Fix savetiddlers command to create files with special characters in the name
This commit is contained in:
parent
0b45b87278
commit
4af8026e28
@ -42,7 +42,7 @@ Command.prototype.execute = function() {
|
|||||||
var renderTree = new $tw.WikiRenderTree(parser,{wiki: wiki});
|
var renderTree = new $tw.WikiRenderTree(parser,{wiki: wiki});
|
||||||
renderTree.execute({tiddlerTitle: title});
|
renderTree.execute({tiddlerTitle: title});
|
||||||
var text = renderTree.render(type);
|
var text = renderTree.render(type);
|
||||||
fs.writeFileSync(path.resolve(pathname,title + extension),text,"utf8");
|
fs.writeFileSync(path.resolve(pathname,encodeURIComponent(title) + extension),text,"utf8");
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user