0 votes
1 view
in Python by (19.2k 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.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...