summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-04-30 21:01:06 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-04-30 21:01:06 +0200
commitddfc7c2530197112fb105b6dd237574bc2fd6b49 (patch)
treef016344d285a2ecddee8ae8c4c73f55e108203b8 /django
parent78ba9670af373f5261f95d6560bfd08425adcaad (diff)
Fixed #4746 -- Allowed spaces around filter separator.
Diffstat (limited to 'django')
-rw-r--r--django/template/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py
index 16b0934aca..ab44bfb0b1 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -486,7 +486,7 @@ constant_string = constant_string.replace("\n", "")
filter_raw_string = r"""
^(?P<constant>%(constant)s)|
^(?P<var>[%(var_chars)s]+|%(num)s)|
- (?:%(filter_sep)s
+ (?:\s*%(filter_sep)s\s*
(?P<filter_name>\w+)
(?:%(arg_sep)s
(?: