(value)
return wrapped
Templatefilter to wrap lines of parameter documentation.

  Take a single long string and breaks it up so that subsequent lines are
  prefixed by an appropriate number of spaces (and preceded by a ' * '.

  Args:
   value: (str) the string to wrap

  Returns:
  the rewrapped string.
Templatefilter to wrap lines of parameter documentation.
Templatefilter to wrap lines of parameter documentation .
def java_parameter_wrap(value):  # pylint: disable=g-bad-name
  """Templatefilter to wrap lines of parameter documentation.

  Take a single long string and breaks it up so that subsequent lines are
  prefixed by an appropriate number of spaces (and preceded by a ' * '.

  Args:
   value: (str) the string to wrap

  Returns:
  the rewrapped string.
  """
  # TODO(user): add 'parameter_doc' option to the DocCommentBlock
  indent = _language_defaults['java'][_PARAMETER_DOC_INDENT]
  prefix = ' * %s ' % (' ' * indent)
  wrapper = textwrap.TextWrapper(width=_language_defaults['java'][_LINE_WIDTH],
                                 replace_whitespace=False,
                                 initial_indent='',
                                 subsequent_indent=prefix)
  wrapped = wrapper.fill(value)
  return wrapped
def java_parameter_wrap ( value ) : # pylint: disable=g-bad-name # TODO(user): add 'parameter_doc' option to the DocCommentBlock indent = _language_defaults [ 'java' ] [ _PARAMETER_DOC_INDENT ] prefix = ' * %s ' % ( ' ' * indent ) wrapper = textwrap . TextWrapper ( width = _language_defaults [ 'java' ] [ _LINE_WIDTH ] , replace_whitespace = False , initial_indent = '' , subsequent_indent = prefix ) wrapped = wrapper . fill ( value ) return wrapped