ng-swagger-gen.js
function toComments(text, level) {
  var indent = '';
  var i;
  for (i = 0; i < level; i++) {
    indent += '  ';
  }
  if (text == null || text.length === 0) {
    return indent;
  }
  const lines = text.trim().split('\n');
  var result = '\n' + indent + '/**\n';
  lines.forEach(line => {
    result += indent + ' *' + (line === '' ? '' : ' ' + line) + '\n';
  });
  result += indent + ' */\n' + indent;
  return result;
}
function toComments(text, level) {
  var indent = '';
  var i;
  for (i = 0; i < level; i++) {
    indent += '  ';
  }
  if (text == null || text.length === 0) {
    return indent;
  }
  const lines = text.trim().split('\n');
  var result = '\n' + indent + '/**\n';
  lines.forEach(line => {
    result += indent + ' *' + (line === '' ? '' : ' ' + line) + '\n';
  });
  result += indent + ' */\n' + indent;
  return result;
}
function toComments ( text , level ) { var indent = '' ; var i ; for ( i = 0 ; i < level ; i ++ ) { indent += '  ' ; } if ( text == null || text . length === 0 ) { return indent ; } const lines = text . trim ( ) . split ( '\n' ) ; var result = '\n' + indent + '/**\n' ; lines . forEach ( line => { result += indent + ' *' + ( line === '' ? '' : ' ' + line ) + '\n' ; } ) ; result += indent + ' */\n' + indent ; return result ; }
Returns a multi-line comment for the given text
Returns a multi - line comment for the given text