I'd like to change linebreaksbr to use the self-closing version of `br`
i.e. `<br/>` so it can be used safely in more environments.
As an example, I wanted to use it in a template generating RML (see
https://www.reportlab.com/software/rml-reference/).
This will not break any existing users but will expand the templatetag's
reach
--
Ticket URL: <https://code.djangoproject.com/ticket/30495>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* owner: nobody => David Ogutu
--
Ticket URL: <https://code.djangoproject.com/ticket/30495#comment:1>
* status: assigned => closed
* resolution: => wontfix
* version: 2.2 => master
* ui_ux: 1 => 0
* type: New feature => Cleanup/optimization
Comment:
Thanks for this request. I know that this change looks trivial but
probably it is not the only one that is required in your use case. Please
take a look at the [https://groups.google.com/d/topic/django-
developers/G4Rz1_Bmh7w/discussion django-developers discussion] (self-
closing tags are a part of it) and ticket #29681. IMO
[https://docs.djangoproject.com/en/stable/ref/forms/renderers/#overriding-
built-in-widget-templates custom widget templates] should solve your
issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/30495#comment:2>
Comment (by David Ogutu):
Thanks. I've looked at the discussion and I agree that it makes sense to
keep this closed. For future visitors, I think a better way might be to
create an intermediary template renderer.
--
Ticket URL: <https://code.djangoproject.com/ticket/30495#comment:3>