Comparing version 0.1.2 to 0.1.3
@@ -80,7 +80,7 @@ exports.read = function(opts, input) { | ||
"Function": function() { | ||
return new Element(node.type, format(il, '{initial}function{name}({args}){sp}{{nli1}{elements}}', { | ||
return new Element(node.type, format(il, '{initial}function{name}({args}){sp}{{elements}}', { | ||
"initial": (!(par in inlineElements) ? inl(il) : ''), | ||
"name": (node.name ? ' ' + node.name : ''), | ||
"args": (node.params && node.params.length ? node.params.join(',' + sp()) : ''), | ||
"elements": (node.elements ? (node.elements.length ? node.elements.map(compile(il + 1, node.type)) : []) : []).reduce(ej(nli(il + 1), nli(il)), '') | ||
"elements": (node.elements && node.elements.length ? nli(il + 1) + node.elements.map(compile(il + 1, node.type)).reduce(ej(nli(il + 1), nli(il)), '') : '') | ||
})) | ||
@@ -87,0 +87,0 @@ }, |
@@ -10,3 +10,3 @@ { | ||
"author": "aynik", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
768507