Jinja render text in HTML preserving line breaks
10:06 06 Sep 2013

I have a simple form like this:

class RecordForm(Form):    
    notes = TextAreaField('Notes')

I record the data in three paragraphs like this:

para1

para2

para3

In the template I would like to see the content of that record in read-only. (Not editable form)

record is this case the model containing the data:

{{ record.notes }}

-->

para1 para2 para3

What can I do to make it to show the multi-lines?

python flask jinja2