@register.tag
def minifyspace(parser, token):
 nodelist = parser.parse(('endminifyspace',))
 parser.delete_first_token()
 return MinifiedNode(nodelist)

@ register . tag def minifyspace ( parser , token ) : nodelist = parser . parse ( ( 'endminifyspace' , ) ) parser . delete_first_token ( ) return MinifiedNode ( nodelist )
removes whitespace including tab and newline characters .