Answer the question
In order to leave comments, you need to log in
How to move text to new line?
Can you please tell me how to transfer the text to a new line when displaying information from the database in the template?
{% for review in reviews %}
<div class="review_comment">
<p >{{review.author}}</p>
<p >{{review.date}}</p>
<h2>Достоинства</h2>
<p>{{review.plus|linebreaksbr}}</p>
<h2>Недостатки</h2>
<p>{{review.minus|linebreaksbr}}</p>
<h2>Комментарий</h2>
<p>{{review.comment|linebreaksbr}}</p>
</div>
{% endfor %}
.review_comment {
margin:0 auto;
margin-top:25px;
border:solid 1px;
padding:50px;
}
.review_comment h2 {
margin:0 auto;
margin-bottom:15px;
margin-top:15px;
font-size:20px;
font-weight:700;
}
.review_comment p {
margin:0 auto;
margin-top:15px;javascript:void(0)
font-size:14px;
font-weight:400;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question