﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36758	Template parser errors when using whitespace around pipe for certain filters	Stephen Skett	Ahmed Asar	"Based on discussion from previous support ticket #4746, I believe it should now be possible to add whitespace around the pipe-character when using a filter in a Django-template, if that is stylistically preferred. However, I experience 'TemplateSyntaxError'  when I use whitespace around the '|', specifically the built-in `divisibleby` and `center` filters - as in the following examples.

With `divisibleby` in an `if`-tag (error: ""Could not parse the remainder: '|' from '|'""):
{{{
{% for obj in some_collection %}
  {% if forloop.counter0 | divisibleby:num_items_per_row %}
    {% comment %}Some HTML here...{% endcomment %}
  {% endif %}
{% endfor %}
}}}

And, with `center` in a `with`-tag (error: ""'with' expected at least one variable assignment""):
{{{
{% with '' | center:loop_limit_val as loop_range %}
  {% for _ in loop_range %}
    {% comment %}Some HTML here...{% endcomment %}
  {% endfor %}
{% endwith %}
}}}

I don't seem to encounter this error for most of the other built-in template-filters which I commonly use (e.g. `date`, `floatformat`, etc.), or with custom filters in my tag-libraries. Is this a bug with `divisibleby` / `center`, or am I missing something?"	New feature	closed	Template system	4.2	Normal	duplicate	template, filter, pipe, whitespace, divisibleby, center		Unreviewed	0	0	0	0	0	0
