I'm new to django. I have a plain text with many paragraph which are entered in django admin. This is pain text copied from internet
Example input
A mysterious landscape phenomenon known as fairy circles has been found in the Australian outback. The fairy circles are characterised by a hexagonal organisation of soil gaps between grass vegetation and seen in the landscape from above.
The beautiful sight cannot be spotted from ground level. Until now, fairy circles have only been documented in the arid landscape of Namibia, Africa.
Example output:
A mysterious landscape phenomenon known as fairy circles has been found in the Australian outback. The fairy circles are characterised by a hexagonal organisation of soil gaps between grass vegetation and seen in the landscape from above.
The beautiful sight cannot be spotted from ground level. Until now, fairy circles have only been documented in the arid landscape of Namibia, Africa.
when I use{{ posts.description|linebreaks }}
It just gives me One line break (one new-line characters). In my chrome console it should one <br />
But I wanted to have 2 line breaks
I tried using {{ posts.description|linebreaks|linebreaks }}
but didn't help
How should I insert 2 line breaks (two new-line characters)?
Any help is appreciated..Thanks in advance
` in the `posts.description` (e.g. replace `\n`) and apply the `safe` filter in the template – user2390182 Mar 16 '16 at 08:56