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

editor_box->add_child(warnings_panel);
	warnings_panel->add_theme_font_override(
			"normal_font", EditorNode::get_singleton()->get_gui_base()->get_theme_font(SNAME("main"), SNAME("EditorFonts")));
	warnings_panel->add_theme_font_size_override(
			"normal_font_size", EditorNode::get_singleton()->get_gui_base()->get_theme_font_size(SNAME("main_size"), SNAME("EditorFonts")));
	warnings_panel->connect("meta_clicked", callable_mp(this, &ScriptTextEditor::_warning_clicked));
	editor_box->add_child(errors_panel);
	errors_panel->add_theme_font_override(
			"normal_font", EditorNode::get_singleton()->get_gui_base()->get_theme_font(SNAME("main"), SNAME("EditorFonts")));
	errors_panel->add_theme_font_size_override(
			"normal_font_size", EditorNode::get_singleton()->get_gui_base()->get_theme_font_size(SNAME("main_size"), SNAME("EditorFonts")));
	errors_panel->connect("meta_clicked", callable_mp(this, &ScriptTextEditor::_error_clicked));
	add_child(context_menu);
	context_menu->connect("id_pressed", callable_mp(this, &ScriptTextEditor::_edit_option));
	add_child(color_panel);
	color_picker = memnew(ColorPicker);
	color_picker->set_deferred_mode(true);
	color_picker->connect("color_changed", callable_mp(this, &ScriptTextEditor::_color_changed));
	color_panel->connect("about_to_popup", callable_mp(EditorNode::get_singleton(), &EditorNode::setup_color_picker).bind(color_picker));
	color_panel->add_child(color_picker);
	quick_open = memnew(ScriptEditorQuickOpen);
	quick_open->connect("goto_line", callable_mp(this, &ScriptTextEditor::_goto_line));
	add_child(quick_open);
	goto_line_dialog = memnew(GotoLineDialog);
	add_child(goto_line_dialog);
	add_child(connection_info_dialog);
	edit_hb->add_child(edit_menu);
	edit_menu->connect("about_to_popup", callable_mp(this, &ScriptTextEditor::_prepare_edit_menu));
	edit_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("ui_undo"), EDIT_UNDO);
	edit_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("ui_redo"), EDIT_REDO);