1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

Correct pesky missing brackets

This commit is contained in:
Jeremy Ruston 2013-04-03 21:10:57 +01:00
parent dc00e584fb
commit c0b6be9a13

View File

@ -946,7 +946,7 @@ $tw.loadTiddlersFromPath = function(filepath,excludeRegExp) {
pathname = path.resolve(filepath,tidInfo.file), pathname = path.resolve(filepath,tidInfo.file),
text = fs.readFileSync(pathname,typeInfo ? typeInfo.encoding : "utf8"); text = fs.readFileSync(pathname,typeInfo ? typeInfo.encoding : "utf8");
tidInfo.fields.text = text; tidInfo.fields.text = text;
tiddlers.push({tiddlers: tidInfo.fields}); tiddlers.push({tiddlers: [tidInfo.fields]});
}); });
} else { } else {
// If not, read all the files in the directory // If not, read all the files in the directory