Opened 14 years ago

Closed 14 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


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)

ticket10001-0.1.patch (2.5 KB) - added by Paul O’Shannessy 14 years ago.
Patch v0.1

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Paul O’Shannessy

Attachment: ticket10001-0.1.patch added

Patch v0.1

comment:1 Changed 14 years ago by dc

Resolution: duplicate
Status: newclosed

Duplicate of #6271

Note: See TracTickets for help on using tickets.
Back to Top