#36341: django.utils.text.wrap does not preserve newlines within text to be
wrapped
-------------------------------------+-------------------------------------
Reporter: Matti Pohjanvirta | Type: Bug
Status: new | Component: Template
| system
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
After the fix for CVE-2025-26699, django.utils.text.wrap and wordwrap
template filter no longer preserve empty lines in between lines in a text
that is wrapped.
Given a text with an intentional empty line between paragraphs to wrap:
{{{
First line
Second line
}}}
it is wrapped to:
{{{
First line
Second line
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36341>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701965391f2c4-120963ec-a4fa-476a-a552-a9934728dd7e-000000%40eu-central-1.amazonses.com.