lib/helpers.js
function length(description) {
  if (arguments.length < 2) {
    throw new Error('Handlebar Helper \'length\'' +
    ' needs 1 parameter');
  }

  if ((typeof description) !== 'string') {
    throw new TypeError('Handlebars Helper \'length\'' +
      'requires path to be a string');
  }

  var desc = description;
  if (len !== -1) {
    description = strObj(description).truncate(len - 50).s;
  }

  return jsStringEscape(description);
}
function length(description) {
  if (arguments.length < 2) {
    throw new Error('Handlebar Helper \'length\'' +
    ' needs 1 parameter');
  }

  if ((typeof description) !== 'string') {
    throw new TypeError('Handlebars Helper \'length\'' +
      'requires path to be a string');
  }

  var desc = description;
  if (len !== -1) {
    description = strObj(description).truncate(len - 50).s;
  }

  return jsStringEscape(description);
}
function length ( description ) { if ( arguments . length < 2 ) { throw new Error ( 'Handlebar Helper \'length\'' + ' needs 1 parameter' ) ; } if ( ( typeof description ) !== 'string' ) { throw new TypeError ( 'Handlebars Helper \'length\'' + 'requires path to be a string' ) ; } var desc = description ; if ( len !== - 1 ) { description = strObj ( description ) . truncate ( len - 50 ) . s ; } return jsStringEscape ( description ) ; }
split the long description into multiple lines
@param  {string} description  request description to be splitted
@returns {string}        multiple lines
split the long description into multiple lines