Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (19.9k points)

I have created a textField model that is sended from a ..

But my problem is simple... How can i specify a line break in the textField? to avoid that the text will show all fluid without spaces or line breaks.

1 Answer

0 votes
by (25.1k points)

You can use django’s in-built linebreak filter, like this:

{{ value|linebreaks }}

This will do exactly what you want.

Browse Categories

...