summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatti Pohjanvirta <matti.pohjanvirta@iki.fi>2025-04-20 18:22:51 +0300
committernessita <124304+nessita@users.noreply.github.com>2025-04-23 16:14:03 -0300
commit1e9db35836d42a3c72f3d1015c2f302eb6fee046 (patch)
tree30700b697b08ee8e9058b0bde76dfdd22959c7a2 /docs
parent18fa74fc88bdbdea0a370f7ab0f348c2a2339092 (diff)
Fixed #36341 -- Preserved whitespaces in wordwrap template filter.
Regression in 55d89e25f4115c5674cdd9b9bcba2bb2bb6d820b. This work improves the django.utils.text.wrap() function to ensure that empty lines and lines with whitespace only are kept instead of being dropped. Thanks Matti Pohjanvirta for the report and fix. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/5.2.1.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/5.2.1.txt b/docs/releases/5.2.1.txt
index caebde7f02..82df478d96 100644
--- a/docs/releases/5.2.1.txt
+++ b/docs/releases/5.2.1.txt
@@ -44,3 +44,7 @@ Bugfixes
* Fixed a regression in Django 5.2 that caused the ``object-tools`` block to be
rendered twice when using custom admin templates with overridden blocks due
to changes in the base admin page block structure (:ticket:`36331`).
+
+* Fixed a regression in Django 5.2, introduced when fixing :cve:`2025-26699`,
+ where the :tfilter:`wordwrap` template filter did not preserve empty lines
+ between paragraphs after wrapping text (:ticket:`36341`).