#2594: Template system should handle whitespace better ----------------------------------------------------------+----------------- Reporter: Gary Wilson <gary.wil...@gmail.com> | Owner: jshedd Status: new | Milestone: Component: Template system | Version: SVN Resolution: | Keywords: Stage: Accepted | Has_patch: 1 Needs_docs: 1 | Needs_tests: 0 Needs_better_patch: 1 | ----------------------------------------------------------+----------------- Comment (by mrmachine):
I'd like to see this enabled with a template tag, as it is template authors who will be needing to use it most. I'd also like to see a deprecation path so that this can become the default behaviour. Similar to when autoescaping was introduced, we could add a template tag `{% stripwhitespace on|off %}{% endstripwhitespace %}` that people can put in their base templates to preserve the existing behaviour when the default changes or enable the new behaviour before it becomes the default. We could raise a deprecation warning whenever a template is rendered without this tag. -- Ticket URL: <http://code.djangoproject.com/ticket/2594#comment:30> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.