What's the rationale behind collapsing any stretch of whitespace to a single space character for values of type string?
I can imagine some trimming might be useful (?) but I'm not sure why it should be impossible to enter multiple spaces?
It becomes more problematic when I have a custom input component rendering a string value with textarea. The user cannot enter any newlines since they are replaced by a space character, but that's sort of the point of rendering the textarea.
(There's also the replacement of the unicode soft hyphen which I don't really have a problem with, but I'm not sure why it's done.)
What's the rationale behind collapsing any stretch of whitespace to a single space character for values of type string?
I can imagine some trimming might be useful (?) but I'm not sure why it should be impossible to enter multiple spaces?
It becomes more problematic when I have a custom input component rendering a string value with
textarea. The user cannot enter any newlines since they are replaced by a space character, but that's sort of the point of rendering thetextarea.(There's also the replacement of the unicode soft hyphen which I don't really have a problem with, but I'm not sure why it's done.)