From 5ccedf038a64435dd0b8a2767e9ed16b49a749bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= Date: Wed, 20 Nov 2024 08:34:43 +0100 Subject: [PATCH] Switched to default ON for multiline template tags --- django/template/engine.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/django/template/engine.py b/django/template/engine.py index 4bd21051e6..65bddab11a 100644 --- a/django/template/engine.py +++ b/django/template/engine.py @@ -1,4 +1,5 @@ import functools +import warnings from django.core.exceptions import ImproperlyConfigured from django.utils.functional import cached_property @@ -8,6 +9,7 @@ from .base import Template from .context import Context, _builtin_context_processors from .exceptions import TemplateDoesNotExist from .library import import_library +from ..utils.deprecation import RemovedInDjango60Warning class Engine: @@ -29,13 +31,13 @@ class Engine: libraries=None, builtins=None, autoescape=True, - multiline=False, + multiline=True, ): - # if not multiline: - # warnings.warn( - # "multiline support in templates will become the default in Django 6.0", - # RemovedInDjango60Warning, - # ) + if not multiline: + warnings.warn( + "multiline support in templates will become the default in Django 6.0", + RemovedInDjango60Warning, + ) if dirs is None: dirs = [] if context_processors is None: