diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/othertests/templates.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 %} <b> <i> text </i> </b> {% endspaceless %}", {}, "<b><i> text </i></b>"), + 'spaceless02': ("{% spaceless %} <b> \n <i> text </i> \n </b> {% endspaceless %}", {}, "<b><i> text </i></b>"), + 'spaceless03': ("{% spaceless %}<b><i>text</i></b>{% endspaceless %}", {}, "<b><i>text</i></b>"), + # simple translation of a string delimited by ' 'i18n01': ("{% load i18n %}{% trans 'xxxyyyxxx' %}", {}, "xxxyyyxxx"), |
