﻿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
3839	carriage returns in template system translate to spaces in output	milesvp@…	Adrian Holovaty	"Following the templating chapter in http://www.djangobook.com/en/beta/chapter04/. I noticed that my carriage returns were translating to spaces in my output html. 

{{{
#####views.py#####################################
from django.shortcuts import render_to_response

def test(request):
    return render_to_response('test.html')
##################################################

#####test.html####################################
<html><body>This is a te
st</body></html>
##################################################

#####rendered output##############################
This is a te st
##################################################
}}}

The real problem comes when I want to do something like this
{{{
##################################################
{% extends 'base.html' %}

{% block content %}
<p>In {{ hour_offset }} hour 
{%ifnotequal hour_offset 1%}
s
{%endnotequal%}
, it will be {{ next_time }}.</p>
{% endblock %}
###################################################

######rendered output for offset=2, minus extended code##
In 2 hour s , it will be 2007-03-27 13:47:20.009487.
#########################################################
}}}
Note the spaces around the s. This may be a design decision, but it feels very wrong. Python wants whitespace.

"		closed	Template system	0.96		invalid	carriage_returns		Unreviewed	0	0	0	0	0	0
