~eliasnaur/gio#175: 
Editor.SetText on `SingleLine` doesn't remove breaklines.

If you have one Editor with SingleLine:

	lineEditor = &widget.Editor{
		SingleLine: true,
		Submit:     true,
	}

It's suppose to not have multiples lines. But, currently Gio doesn't care about the .SetText(). The SetText (https://git.sr.ht/~eliasnaur/gio/tree/master/widget/editor.go#L491) inserts the content without any change:

However, the Insert() calls e.append(s) which calls strings.ReplaceAll(s, "\n", ""). But, SetText doesn't remove breaklines. The Editor stop working if some text with breakline is provided to SetText!

Status
REPORTED
Submitter
~inkeliz
Assigned to
No-one
Submitted
4 months ago
Updated
4 months ago
Labels
No labels applied.