#10094: do_extenbds function incorrectly parses Token
------------------------------------------+---------------------------------
Reporter: [email protected] | Owner: mcroydon
Status: assigned | Milestone: 1.1
Component: Template system | Version: 1.0
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------+---------------------------------
Changes (by mcroydon):
* has_patch: 0 => 1
Comment:
The patch above makes use of {{{token.split_contents()}}} for both the
include and extends tags, with tests that failed before the patch and now
pass.
I left {{{token.contents.split()}}} there for the block tag since allowing
spaces in that tag ({{{{% block 'my block' %}}}}) requires some design
thought and might have side-effects that need to be thought about and
tested. If we want to allow spaces in the block tag, that patch is
trivial.
I may see if we can safely remove other instances of
{{{token.contents.split()}}} from django as well.
--
Ticket URL: <http://code.djangoproject.com/ticket/10094#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---