bernat/best_in_place — pull request #155 by wgrrrr (2012-06-05 17:50:41+00:00)
Title: Improved CRLF detection/escaping

The existing CRLF detection in the `attribute_escape` method only detected `\n` characters. There are many instances where newlines include a carriage return (i.e. `\r\n`). When these are not escaped properly it results in double spacing in the `textarea` that is generated by best_in_place.

I have modified the regular expression to ensure that these situations are escaped.

I tried to write a useful test for this, but was unable to write anything useful.