While discussing T263533: TemplateData editor allow text input fields to expand/autosize we realized that it probably would make sense to allow adding new lines for certain fields in the TemplateData editor.
Points taken from T263533#6814478
- Name and aliases: Technically, parameter names (and aliases, which are just alternative parameter names) are actually allowed to contain newline characters. But this is really, really strange. I can't remember ever seeing this in a real-life template.
- Label: While it's certainly possible to allow labels to contain line breaks, it feels odd for a label.
- Description: Here supporting line breaks would possibly make sense. However, as of now line breaks are never rendered as such, but the description is always collased to a single line with spaces.
- Autovalue: Line breaks work just fine. I actually suggest to officially mark this field with multiline: true, even if this should rarely be needed.
- Default: It's probably rare. But when you think of the default as a value that could as well be entered by the user, it should accept newlines the moment the type of the field allows newlines (e.g. "string"). However, this heavily depends on how the default is rendered later. At the moment, it's a single collapsed line. This is actually a bug, as this field is currently the only one that's marked as being multiline – but it's never rendered as multiline.
- Example: Probably similar to above.