﻿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
2594	Template system should handle whitespace better	Gary Wilson <gary.wilson@…>	jshedd	"So, I think that the template system should not leave blank lines
behind if the tag(s) on that line evaulated to the empty string.  To
make sure we are all on the same page, here is an example:

This template code:
{{{
<h1>My list</h1>

<ul>
{% for item in items %}
    <li>{{ item }}</li>
{% endfor %}
</ul>
}}}

Would normally evaluate to:
{{{
<h1>My list</h1>

<ul>

    <li>item 1</li>

    <li>item 2</li>

    <li>item 3</li>

</ul>
}}}

And with the {% spaceless %} tag evaluates to:
{{{
<h1>My list</h1> <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li>
</ul>
}}}

And with the StripWhitespaceMiddleware evaluates to
{{{
<h1>My list</h1>
<ul>
    <li>item 1</li>
    <li>item 2</li>
    <li>item 3</li>
</ul>
}}}

But what I think should evaluate to:
{{{
<h1>My list</h1>

<ul>
    <li>item 1</li>
    <li>item 2</li>
    <li>item 3</li>
</ul>
}}}

In other words, leave lines that I add, but remove the empty lines that
had template tags on them. "	Bug	closed	Template system	dev	Normal	wontfix		"mccutchen@… gary.wilson@… cgrady@… Tai Lee kmike84@… andrep Stephane ""Twidi"" Angel Florian.Sening@… Waldir Pimenta ldiqual@… python@… ua_django_bugzilla@… s.shanabrook@… chipx86@… tomasbabej@… trbs@… Alex Dehnert"	Accepted	1	0	0	1	0	0
