djangosnippets.org: Latest snippets posted by jheaslyhttps://djangosnippets.org/users/jheasly/2007-03-29T15:09:58.659150-05:00jheaslyConvert newlines into <p> and </p> tags
2007-03-29T15:09:58.659150-05:00jheaslyhttps://djangosnippets.org/snippets/143/<p>Based upon (i.e., mostly lifted from) the built-in "linebreaks" and "linebreaksbr" filters, this one works as they do:</p>
<p><code>{{ object.text|paragraphs }}</code></p>
Freely redistributable