### Godot version

v4.0.beta10.official [d0398f62f]

### System information

Windows 22H2, Compatibility, GeForce GTX 550 Ti

### Issue description

Multiple lines of error messages are copied without line breaks:
The script editor's error panel shows:
```
Line 6:Expected parameter name.
Line 6:Expected closing ")" after function parameters.
Line 6:Expected ":" after function declaration.
```
But selecting and copying them `ctrl c`, copies them without line breaks:
```
Line 6:Expected parameter name.Line 6:Expected closing ")" after function parameters.Line 6:Expected ":" after function declaration.
```


### Steps to reproduce

- start Godot
- open the attached project
- open the script `Node2D.gd`
The status bar shows an error message.
- click on the red circle with an x in it, and the number 3 to the right of the circle.
The script editor's error panel shows three messages:
>Line 6:Expected parameter name.
Line 6:Expected closing ")" after function parameters.
Line 6:Expected ":" after function declaration.

- select all three lines, and copy them `ctrl c`
- in the script editor, click on the empty line 12 to place the cursor there.
- paste `ctrl v`

### Expected
The copied lines should be pasted on three lines, as they appeared in the error panel.

### Observed
There are no line breaks, they appear on the same line:
```
Line 6:Expected parameter name.Line 6:Expected closing ")" after function parameters.Line 6:Expected ":" after function declaration.
```


### Minimal reproduction project

[issue, error messages copied without line breaks.zip](https://github.com/godotengine/godot/files/10361376/issue.error.messages.copied.without.line.breaks.zip)

if (Object::cast_to<Script>(*p_resource)) {
		return memnew(ScriptTextEditor);
	}
	return nullptr;
}
void ScriptTextEditor::register_editor() {
	ED_SHORTCUT("script_text_editor/move_up", TTR("Move Up"), KeyModifierMask::ALT | Key::UP);
	ED_SHORTCUT("script_text_editor/move_down", TTR("Move Down"), KeyModifierMask::ALT | Key::DOWN);
	ED_SHORTCUT("script_text_editor/delete_line", TTR("Delete Line"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::SHIFT | Key::K);
	
	
	ED_SHORTCUT("script_text_editor/indent", TTR("Indent"), Key::NONE);
	ED_SHORTCUT("script_text_editor/unindent", TTR("Unindent"), KeyModifierMask::SHIFT | Key::TAB);
	ED_SHORTCUT("script_text_editor/toggle_comment", TTR("Toggle Comment"), KeyModifierMask::CMD_OR_CTRL | Key::K);
	ED_SHORTCUT("script_text_editor/toggle_fold_line", TTR("Fold/Unfold Line"), KeyModifierMask::ALT | Key::F);
	ED_SHORTCUT_OVERRIDE("script_text_editor/toggle_fold_line", "macos", KeyModifierMask::CTRL | KeyModifierMask::META | Key::F);
	ED_SHORTCUT("script_text_editor/fold_all_lines", TTR("Fold All Lines"), Key::NONE);
	ED_SHORTCUT("script_text_editor/unfold_all_lines", TTR("Unfold All Lines"), Key::NONE);
	ED_SHORTCUT("script_text_editor/duplicate_selection", TTR("Duplicate Selection"), KeyModifierMask::SHIFT | KeyModifierMask::CTRL | Key::D);
	ED_SHORTCUT_OVERRIDE("script_text_editor/duplicate_selection", "macos", KeyModifierMask::SHIFT | KeyModifierMask::META | Key::C);
	ED_SHORTCUT("script_text_editor/evaluate_selection", TTR("Evaluate Selection"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::SHIFT | Key::E);
	ED_SHORTCUT("script_text_editor/toggle_word_wrap", TTR("Toggle Word Wrap"), KeyModifierMask::ALT | Key::Z);
	ED_SHORTCUT("script_text_editor/trim_trailing_whitespace", TTR("Trim Trailing Whitespace"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::ALT | Key::T);
	ED_SHORTCUT("script_text_editor/convert_indent_to_spaces", TTR("Convert Indent to Spaces"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::SHIFT | Key::Y);
	ED_SHORTCUT("script_text_editor/convert_indent_to_tabs", TTR("Convert Indent to Tabs"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::SHIFT | Key::I);