From 0eaee6f5d4976f3b0146d512c43d2f9a19f39021 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 15 Jan 2006 01:51:30 +0000 Subject: Fixed #1067 and #276 -- Added a {% spaceless %} tag, available in all templates git-svn-id: http://code.djangoproject.com/svn/django/trunk@1967 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/othertests/templates.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py index f4f94e579d..5e3afd01e4 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -298,6 +298,11 @@ TEMPLATE_TESTS = { gentlemen. """), + # {% spaceless %} tag + 'spaceless01': ("{% spaceless %} text {% endspaceless %}", {}, " text "), + 'spaceless02': ("{% spaceless %} \n text \n {% endspaceless %}", {}, " text "), + 'spaceless03': ("{% spaceless %}text{% endspaceless %}", {}, "text"), + # simple translation of a string delimited by ' 'i18n01': ("{% load i18n %}{% trans 'xxxyyyxxx' %}", {}, "xxxyyyxxx"), -- cgit v1.3