minor whitespace issues
This commit is contained in:
@@ -713,17 +713,20 @@ function OutputStream(options) {
|
|||||||
/* -----[ literals ]----- */
|
/* -----[ literals ]----- */
|
||||||
DEFPRINT(AST_Array, function(self, output){
|
DEFPRINT(AST_Array, function(self, output){
|
||||||
output.with_square(function(){
|
output.with_square(function(){
|
||||||
self.elements.forEach(function(exp, i){
|
var a = self.elements, len = a.length;
|
||||||
|
if (len > 0) output.space();
|
||||||
|
a.forEach(function(exp, i){
|
||||||
if (i) output.comma();
|
if (i) output.comma();
|
||||||
exp.print(output);
|
exp.print(output);
|
||||||
});
|
});
|
||||||
|
if (len > 0) output.space();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
DEFPRINT(AST_Object, function(self, output){
|
DEFPRINT(AST_Object, function(self, output){
|
||||||
if (self.properties.length > 0) output.with_block(function(){
|
if (self.properties.length > 0) output.with_block(function(){
|
||||||
self.properties.forEach(function(prop, i){
|
self.properties.forEach(function(prop, i){
|
||||||
if (i) {
|
if (i) {
|
||||||
output.comma();
|
output.print(",");
|
||||||
output.newline();
|
output.newline();
|
||||||
}
|
}
|
||||||
output.indent();
|
output.indent();
|
||||||
|
|||||||
Reference in New Issue
Block a user