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

print-window-tiddler
Jeremy Ruston 2013-03-18 22:16:01 +00:00
rodzic 0b45b87278
commit 4af8026e28
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -42,7 +42,7 @@ Command.prototype.execute = function() {
var renderTree = new $tw.WikiRenderTree(parser,{wiki: wiki});
renderTree.execute({tiddlerTitle: title});
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;
};