1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Fix savetiddlers command to create files with special characters in the name

This commit is contained in:
Jeremy Ruston 2013-03-18 22:16:01 +00:00
parent 0b45b87278
commit 4af8026e28

View File

@ -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;
}; };