lib/utils/common.js
function(text, pad) {
			var result = [];
			var lines = this.splitByLines(text);
			var nl = '\n';
				
			result.push(lines[0]);
			for (var j = 1; j < lines.length; j++) 
				result.push(nl + pad + lines[j]);
				
			return result.join('');
		}
function(text, pad) {
			var result = [];
			var lines = this.splitByLines(text);
			var nl = '\n';
				
			result.push(lines[0]);
			for (var j = 1; j < lines.length; j++) 
				result.push(nl + pad + lines[j]);
				
			return result.join('');
		}
function ( text , pad ) { var result = [ ] ; var lines = this . splitByLines ( text ) ; var nl = '\n' ; result . push ( lines [ 0 ] ) ; for ( var j = 1 ; j < lines . length ; j ++ ) result . push ( nl + pad + lines [ j ] ) ; return result . join ( '' ) ; }
Indents text with padding
@param {String} text Text to indent
@param {String} pad Padding size (number) or padding itself (string)
@return {String}
Indents text with padding