(self, text, context)
return _WrapInComment(
        text,
        wrap_blocks=self._wrap_blocks,
        start_prefix=start_prefix,
        continue_prefix=continue_prefix,
        comment_end=comment_end,
        begin_tag=begin_tag,
        end_tag=end_tag,
        available_width=available_width)
Format text according to the context.

    The strategy is to divide the text into blocks (on blank lines), then
    to format the blocks individually, then reassemble.

    Args:
      text: (str) The text to format.
      context: (django_template.Context) The rendering context.

    Returns:
      The rendered comment.
Format text according to the context.
Format text according to the context .
def RenderText(self, text, context):  # pylint: disable=g-bad-name
    """Format text according to the context.

    The strategy is to divide the text into blocks (on blank lines), then
    to format the blocks individually, then reassemble.

    Args:
      text: (str) The text to format.
      context: (django_template.Context) The rendering context.

    Returns:
      The rendered comment.
    """
    if self._comment_type == 'doc':
      start_prefix = _GetFromContext(context, _DOC_COMMENT_START,
                                     _COMMENT_START)
      continue_prefix = _GetFromContext(context, _DOC_COMMENT_CONTINUE,
                                        _COMMENT_CONTINUE)
      comment_end = _GetFromContext(context, _DOC_COMMENT_END, _COMMENT_END)
      begin_tag = _GetFromContext(context, _DOC_COMMENT_BEGIN_TAG)
      end_tag = _GetFromContext(context, _DOC_COMMENT_END_TAG)
    else:
      start_prefix = _GetFromContext(context, _COMMENT_START)
      continue_prefix = _GetFromContext(context, _COMMENT_CONTINUE)
      comment_end = _GetFromContext(context, _COMMENT_END)
      begin_tag = ''
      end_tag = ''

    available_width = (_GetFromContext(context, _LINE_WIDTH) -
                       context.get(_CURRENT_INDENT, 0))

    return _WrapInComment(
        text,
        wrap_blocks=self._wrap_blocks,
        start_prefix=start_prefix,
        continue_prefix=continue_prefix,
        comment_end=comment_end,
        begin_tag=begin_tag,
        end_tag=end_tag,
        available_width=available_width)
def RenderText ( self , text , context ) : # pylint: disable=g-bad-name if self . _comment_type == 'doc' : start_prefix = _GetFromContext ( context , _DOC_COMMENT_START , _COMMENT_START ) continue_prefix = _GetFromContext ( context , _DOC_COMMENT_CONTINUE , _COMMENT_CONTINUE ) comment_end = _GetFromContext ( context , _DOC_COMMENT_END , _COMMENT_END ) begin_tag = _GetFromContext ( context , _DOC_COMMENT_BEGIN_TAG ) end_tag = _GetFromContext ( context , _DOC_COMMENT_END_TAG ) else : start_prefix = _GetFromContext ( context , _COMMENT_START ) continue_prefix = _GetFromContext ( context , _COMMENT_CONTINUE ) comment_end = _GetFromContext ( context , _COMMENT_END ) begin_tag = '' end_tag = '' available_width = ( _GetFromContext ( context , _LINE_WIDTH ) - context . get ( _CURRENT_INDENT , 0 ) ) return _WrapInComment ( text , wrap_blocks = self . _wrap_blocks , start_prefix = start_prefix , continue_prefix = continue_prefix , comment_end = comment_end , begin_tag = begin_tag , end_tag = end_tag , available_width = available_width )