vendor/emmet.js
function(text, pad) {
			var padStr = (_.isNumber(pad)) 
				? this.repeatString(require('resources').getVariable('indentation') || '\t', pad) 
				: pad;
				
			var result = [];
			
			var lines = this.splitByLines(text);
			var nl = this.getNewline();
				
			result.push(lines[0]);
			for (var j = 1; j < lines.length; j++) 
				result.push(nl + padStr + lines[j]);
				
			return result.join('');
		}
function(text, pad) {
			var padStr = (_.isNumber(pad)) 
				? this.repeatString(require('resources').getVariable('indentation') || '\t', pad) 
				: pad;
				
			var result = [];
			
			var lines = this.splitByLines(text);
			var nl = this.getNewline();
				
			result.push(lines[0]);
			for (var j = 1; j < lines.length; j++) 
				result.push(nl + padStr + lines[j]);
				
			return result.join('');
		}
function ( text , pad ) { var padStr = ( _ . isNumber ( pad ) ) ? this . repeatString ( require ( 'resources' ) . getVariable ( 'indentation' ) || '\t' , pad ) : pad ; var result = [ ] ; var lines = this . splitByLines ( text ) ; var nl = this . getNewline ( ) ; result . push ( lines [ 0 ] ) ; for ( var j = 1 ; j < lines . length ; j ++ ) result . push ( nl + padStr + 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