cakephp/cakephp — pull request #921 by dereuromark (2012-10-26 11:36:41+00:00)
Title: normalize inputs to avoid stripping of whitespaces - except for textarea

Currently, inputs (text, ...) would lose whitespaces other than a "normal space" completely:

My [newline character]
value

(which would be printed "My value" in the view)
would become

Myvalue

So for all other types then textareas it makes sense to normalize before setting the value of the input so the form post of the inputs can not destroy the whitespace but normalize it to a normal space.