Friday, January 7, 2022

Re: linebreaksbr doesn't work

Try `linebreaks` instead of `linebreaksbr`.

On Fri, 7 Jan 2022 at 21:52, ___Maxim.Nesterov___ <maxgoonfuture@gmail.com> wrote:

Hi, why linebreaksbr might not work {{somevalue | linebreaksbr}}

For example, somevalue = 'Joel\nis a slug', and linebreaksbr doesn't change \n → <br>

----------------------

{% load static %}

<!DOCTYPE html>

<head>


</head>

<body>

<code>

<p>

{{somevalue | linebreaksbr}}

</p>

</code>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d366e7f-c316-4a13-ac97-947d23326105n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoTQZZ32oTfZ%3DgNDipyMKGyCgU5%2BH659Vm6en6ui0-c6EQ%40mail.gmail.com.

No comments:

Post a Comment