Index: django/contrib/sitemaps/templates/sitemap.xml
===================================================================
--- django/contrib/sitemaps/templates/sitemap.xml	(revision 3810)
+++ django/contrib/sitemaps/templates/sitemap.xml	(working copy)
@@ -1,11 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
-{% for url in urlset %}
-  <url>
-    <loc>{{ url.location|escape }}</loc>
-    {% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}
-    {% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}
-    {% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}
-   </url>
-{% endfor %}
+{% for url in urlset %}<url><loc>{{ url.location|escape }}</loc>{% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}{% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}{% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}</url>{% endfor %}
 </urlset>
Index: django/contrib/sitemaps/templates/sitemap_index.xml
===================================================================
--- django/contrib/sitemaps/templates/sitemap_index.xml	(revision 3810)
+++ django/contrib/sitemaps/templates/sitemap_index.xml	(working copy)
@@ -1,8 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84">
-{% for location in sitemaps %}
-	<sitemap>
-		<loc>{{ location|escape }}</loc>
-	</sitemap>
-{% endfor %}
+{% for location in sitemaps %}<sitemap><loc>{{ location|escape }}</loc></sitemap>{% endfor %}
 </sitemapindex>
