Opened 16 years ago
Closed 16 years ago
#10001 closed (duplicate)
smart_split should be more versatile
Reported by: | Paul O’Shannessy | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
Patch v0.1