Ticket #8296: 8296.parser.diff

File 8296.parser.diff, 729 bytes (added by Julien Phalip, 16 years ago)
  • django/django/template/__init__.py

     
    253253                var_node = self.create_variable_node(filter_expression)
    254254                self.extend_nodelist(nodelist, var_node,token)
    255255            elif token.token_type == TOKEN_BLOCK:
    256                 if token.contents in parse_until:
     256                if token.contents.split()[0] in parse_until:
    257257                    # put token back on token list so calling code knows why it terminated
    258258                    self.prepend_token(token)
    259259                    return nodelist
Back to Top