(self, context)
return ret
Collapses newline inside the tag scope.
Collapses newline inside the tag scope.
Collapses newline inside the tag scope .
def render(self, context):  # pylint: disable=g-bad-name
    """Collapses newline inside the tag scope."""
    lines = self._nodelist.render(context)
    ret = re.sub(r'\n(\n)+', '\n\n', lines)
    return ret
def render ( self , context ) : # pylint: disable=g-bad-name lines = self . _nodelist . render ( context ) ret = re . sub ( r'\n(\n)+' , '\n\n' , lines ) return ret