#36341: django.utils.text.wrap does not preserve newlines within text to be wrapped
-------------------------------------+-------------------------------------
Reporter: Matti Pohjanvirta | Owner: Matti
| Pohjanvirta
Type: Bug | Status: closed
Component: Template system | Version: 5.2
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by nessita <124304+nessita@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"1e9db35836d42a3c72f3d1015c2f302eb6fee046" 1e9db35]:
{{{#!CommitTicketReference repository=""
revision="1e9db35836d42a3c72f3d1015c2f302eb6fee046"
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+...@users.noreply.github.com>
}}}
--
Ticket URL: <
https://code.djangoproject.com/ticket/36341#comment:8>