summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-09-26 16:27:24 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-09-26 16:27:24 +0000
commit96f0b7bd213d0de63095914559e4d1a1eceab840 (patch)
treec0b1b898bee3a2ddccf7b3e9bfd4537ba66e2ad3
parenta07aafe007cd83e4e4afb26d47f865608bd7ee65 (diff)
Fixed #2805 -- Removed some whitespace from the two sitemap XML templates.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/sitemaps/templates/sitemap.xml2
-rw-r--r--django/contrib/sitemaps/templates/sitemap_index.xml6
2 files changed, 3 insertions, 5 deletions
diff --git a/django/contrib/sitemaps/templates/sitemap.xml b/django/contrib/sitemaps/templates/sitemap.xml
index 3ee4f914f7..ad24c045d4 100644
--- a/django/contrib/sitemaps/templates/sitemap.xml
+++ b/django/contrib/sitemaps/templates/sitemap.xml
@@ -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>
diff --git a/django/contrib/sitemaps/templates/sitemap_index.xml b/django/contrib/sitemaps/templates/sitemap_index.xml
index e9d722ac7f..c89b192ecc 100644
--- a/django/contrib/sitemaps/templates/sitemap_index.xml
+++ b/django/contrib/sitemaps/templates/sitemap_index.xml
@@ -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>