V
V
Vladislav Kadun2018-07-12 11:45:23
Django
Vladislav Kadun, 2018-07-12 11:45:23

How to make multiline entries in sqlite3?

When I make a multi-line entry, initially everything looks fine. 5b4714625a211337904848.jpeg
But already on the site everything merges into one paragraph.
5b4714a3532bd725852761.jpeg
Maybe there is some special character that replaces the line break? Tried both "\n" <br>and "\r\n".
-------------------------------------------------- -------------------------------------------------- ----------------------------------------
The answer is found: you just need to add to the template to the value |linebreaksbr, that was{{ variable|linebreaksbr }}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Shatalov, 2018-07-12
@ZXZs

https://docs.djangoproject.com/en/1.11/ref/templat...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question