So the bog-standard built-in filter linebreaks is supposed to do the 
following:

"Replaces line breaks in plain text with appropriate HTML"

The doc string is:

 """Converts newlines into <p> and <br />s."""

However, it doesn't do this at all. It neither replaces nor converts; 
instead it leaves linebreaks in place and ADDS html tags:

return u'\n\n'.join(paras)

I could write my own filter that simply returns join(paras), but there's 
got to be a better way, no? And shouldn't we try to make the documentation 
talk about what is actually happening?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Jzn_DeRxWGUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to