Index: django/template/defaultfilters.py =================================================================== --- django/template/defaultfilters.py (revision 6190) +++ django/template/defaultfilters.py (working copy) @@ -254,13 +254,22 @@ escape = stringfilter(escape) def linebreaks(value): - "Converts newlines into
and
s"
+ """
+ Replaces line breaks in plain text with appropriate HTML; a single
+ newline becomes an HTML line break (``
``) and a new line
+ followed by a blank line becomes a paragraph break (``
`` and ``
`` tags.
+Replaces line breaks in plain text with appropriate HTML; a single
+newline becomes an HTML line break (``
``) and a new line
+followed by a blank line becomes a paragraph break (``