From 96f0b7bd213d0de63095914559e4d1a1eceab840 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 26 Sep 2006 16:27:24 +0000 Subject: [PATCH] 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 --- django/contrib/sitemaps/templates/sitemap.xml | 2 ++ django/contrib/sitemaps/templates/sitemap_index.xml | 6 +----- 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 @@ +{% spaceless %} {% for url in urlset %} {{ url.location|escape }} @@ -8,4 +9,5 @@ {% if url.priority %}{{ url.priority }}{% endif %} {% endfor %} +{% endspaceless %} 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 @@ -{% for location in sitemaps %} - - {{ location|escape }} - -{% endfor %} +{% for location in sitemaps %}{{ location|escape }}{% endfor %}