(parser, unused_token)
return CollapsedNewLinesNode(nodelist)
Collapses 3 or more newlines into 2 newlines.

  Usage:
    {% collapsenewlines %}
    ...
    {% end collapsenewlines %}

  Args:
    parser: (parser) the Django parser context.
    unused_token: (django.template.Token) the token holding this tag

  Returns:
    a CollapsedNewLinesNode
Collapses 3 or more newlines into 2 newlines.
Collapses 3 or more newlines into 2 newlines .
def DoCollapseNewLines(parser, unused_token):
  """Collapses 3 or more newlines into 2 newlines.

  Usage:
    {% collapsenewlines %}
    ...
    {% end collapsenewlines %}

  Args:
    parser: (parser) the Django parser context.
    unused_token: (django.template.Token) the token holding this tag

  Returns:
    a CollapsedNewLinesNode
  """
  nodelist = parser.parse(('endcollapsenewlines',))
  parser.delete_first_token()
  return CollapsedNewLinesNode(nodelist)
def DoCollapseNewLines ( parser , unused_token ) : nodelist = parser . parse ( ( 'endcollapsenewlines' , ) ) parser . delete_first_token ( ) return CollapsedNewLinesNode ( nodelist )