Skip to content

Whitespace in string values is collapsed to single space character #39

@martijnvermaat

Description

@martijnvermaat

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions