Correct pesky missing brackets

This commit is contained in:
Jeremy Ruston 2013-04-03 21:10:57 +01:00
parent dc00e584fb
commit c0b6be9a13
1 changed files with 1 additions and 1 deletions

View File

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