Ticket #4746: filter_sep.patch

File filter_sep.patch, 450 bytes (added by sciyoshi@…, 17 years ago)

Patch to allow whitespace around template filter separators

  • django/template/__init__.py

     
    501501^%(i18n_open)s"(?P<i18n_constant>%(str)s)"%(i18n_close)s|
    502502^"(?P<constant>%(str)s)"|
    503503^(?P<var>[%(var_chars)s]+)|
    504  (?:%(filter_sep)s
     504 (?:\s*%(filter_sep)s\s*
    505505     (?P<filter_name>\w+)
    506506         (?:%(arg_sep)s
    507507             (?:
Back to Top