1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
Missed a bit
This commit is contained in:
Jeremy Ruston 2012-02-11 18:19:51 +00:00
parent a20c9cc8ac
commit 138f8d875b

View File

@ -136,7 +136,7 @@ var commandLineSwitches = {
var recipe = []; var recipe = [];
app.store.forEachTiddler(function(title,tiddler) { app.store.forEachTiddler(function(title,tiddler) {
var filename = encodeURIComponent(tiddler.title.replace(/ /g,"_")) + ".tid"; var filename = encodeURIComponent(tiddler.title.replace(/ /g,"_")) + ".tid";
fs.writeFileSync(path.resolve(args[0],filename),store.serializeTiddler("application/x-tiddler",tiddler),"utf8"); fs.writeFileSync(path.resolve(args[0],filename),app.store.serializeTiddler("application/x-tiddler",tiddler),"utf8");
recipe.push("tiddler: " + filename + "\n"); recipe.push("tiddler: " + filename + "\n");
}); });
fs.writeFileSync(path.join(args[0],"split.recipe"),recipe.join("")); fs.writeFileSync(path.join(args[0],"split.recipe"),recipe.join(""));