﻿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
15798	"""spaceless"" filter does not not honor <pre> tag formatting"	dfcode	nobody	"I have a blog site where I occasionally wrap some HTML code between <PRE> tags to put it on display for my viewers.  I've noticed that when I apply the {% spaceless %} filter to my document, Django plows straight through the embedded HTML code with no regard for the ""pre-formatted"" declaration.  An example might be:
{{{
<html>
  <body>
    <pre>
    <form>
      <label>This is an example of some code I want to display in indented form.</label>
      <input type=""submit"" />
    </form>
    </pre>
  </body>
</html>
}}}
results in:
{{{
<html><body><pre><form><label>This is an example of some code I want to display in indented form.</label><input type=""submit"" /></form></pre></body></html>
}}}
and one line of code is displayed on my webpage.  

Perhaps this is intentional.  If not, I think the 'spaceless' filter should be programmed to recognize <pre> tags and leave the content within them alone.
"	Cleanup/optimization	closed	Template system	1.3	Normal	wontfix	spaceless,html,pre		Unreviewed	0	0	0	0	0	0
