Permalink
Browse files

Fixed #2805 -- Removed some whitespace from the two sitemap XML templ…

…ates.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a07aafe commit 96f0b7bd213d0de63095914559e4d1a1eceab840 @adrianholovaty adrianholovaty committed Sep 26, 2006
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
+{% spaceless %}
{% for url in urlset %}
<url>
<loc>{{ url.location|escape }}</loc>
@@ -8,4 +9,5 @@
{% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}
</url>
{% endfor %}
+{% endspaceless %}
</urlset>
@@ -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>

0 comments on commit 96f0b7b

Please sign in to comment.