Ticket #8296: 8296.diff
File 8296.diff, 1.2 KB (added by , 16 years ago) |
---|
-
django/template/__init__.py
267 267 var_node = self.create_variable_node(filter_expression) 268 268 self.extend_nodelist(nodelist, var_node,token) 269 269 elif token.token_type == TOKEN_BLOCK: 270 if token.contents in parse_until:271 # put token back on token list so calling code knows why it terminated272 self.prepend_token(token)273 return nodelist274 270 try: 275 271 command = token.contents.split()[0] 276 272 except IndexError: 277 273 self.empty_block_tag(token) 274 if command in parse_until: 275 # put token back on token list so calling code knows why it terminated 276 self.prepend_token(token) 277 return nodelist 278 278 # execute callback function for this tag and append resulting node 279 279 self.enter_command(command, token) 280 280 try: