1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Improved legibility of converted filenames

This commit is contained in:
Jeremy Ruston 2011-11-26 12:52:09 +00:00
parent a52fd57e88
commit 74363b104a

View File

@ -21,7 +21,7 @@ var tiddlers = tiddlyWikiInput.parseTiddlyWiki(tiddlywikidoc);
var recipe = []; var recipe = [];
for(var t=0; t<tiddlers.length; t++) { for(var t=0; t<tiddlers.length; t++) {
var tid = new tiddler.Tiddler(tiddlers[t]); var tid = new tiddler.Tiddler(tiddlers[t]);
var filename = encodeURIComponent(tid.fields.title) + ".tid"; var filename = encodeURIComponent(tid.fields.title.replace(/ /g,"_")) + ".tid";
fs.writeFileSync(path.join(outputdir,filename),tiddlerOutput.outputTiddler(tid)); fs.writeFileSync(path.join(outputdir,filename),tiddlerOutput.outputTiddler(tid));
recipe.push("tiddler: " + filename + "\n"); recipe.push("tiddler: " + filename + "\n");
} }