#10001: smart_split should be more versatile
----------------------------+-----------------------------------------------
Reporter: zpao | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 1 |
----------------------------+-----------------------------------------------
smart_split should accept input such that the following is true:
{{{
>>> list(smart_split(r"A variable='value' should work."))
[u'A', u"variable='value'" u'should' u'work']
>>> list(smart_split(r"A variable='value with spaces' should also work."))
[u'A', u"variable='value with spaces'", u'should', u'also', u'work.']
}}}
With this, multiple word strings can be passed to variables in a template.
--
Ticket URL: <http://code.djangoproject.com/ticket/10001>
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
-~----------~----~----~----~------~----~------~--~---