Helper method to apply indent
function applyIndent( indent, content ) {
			if ( ! indent || indent.length < 1 ) {
				return content;
			}

			return content
				.split( "\n" )
				.map( function( line ) {
					// do not indent empty lines
					return line.trim() !== "" ? ( indent + line ) : "";
				} )
				.join( "\n" );
		}