Consistify formatting.

This commit is contained in:
Young Hahn
2011-05-19 17:50:48 -04:00
parent 485342a9e8
commit 964ead7426
3 changed files with 7 additions and 7 deletions

View File

@@ -48,8 +48,7 @@ Step(
mbtiles.metadata('bounds', this.parallel());
},
function(err, name, type, description, version, format, bounds) {
console.warn('');
console.warn(' Metadata');
console.warn('Metadata');
utils.table([
['name', name],
['type', type],
@@ -156,4 +155,4 @@ Step(
}.bind(this)
);
}
);
);

View File

@@ -115,7 +115,8 @@ Step(
.finalize();
});
};
console.log('00 -------------- 50 -------------- 100');
console.warn('00 -------------- 50 -------------- 100');
sys.print('');
doit(1000, 0);
},
function(err) {
@@ -135,8 +136,8 @@ Step(
function(err) {
if (err) throw err;
sys.print('\n');
console.log('Compact hits %s.', hits);
console.log('Compaction complete.');
console.warn('Compact hits %s.', hits);
console.warn('Compaction complete.');
}
);

View File

@@ -12,7 +12,7 @@ utils.table = function(fields) {
});
fields.forEach(function(field) {
console.warn(
' ' + field.map(function(val, i) {
field.map(function(val, i) {
if (i >= lengths.length - 1) return val;
return val + Array(lengths[i] - val.toString().length + 1).join(' ');
}).join(' ')