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

highlighter_menu->connect("id_pressed", callable_mp(this, &ScriptTextEditor::_change_syntax_highlighter));
	edit_hb->add_child(search_menu);
	search_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/find"), SEARCH_FIND);
	search_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/find_next"), SEARCH_FIND_NEXT);
	search_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/find_previous"), SEARCH_FIND_PREV);
	search_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/replace"), SEARCH_REPLACE);
	search_menu->get_popup()->add_separator();
	search_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/find_in_files"), SEARCH_IN_FILES);
	search_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/replace_in_files"), REPLACE_IN_FILES);
	search_menu->get_popup()->add_separator();
	search_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/contextual_help"), HELP_CONTEXTUAL);
	search_menu->get_popup()->connect("id_pressed", callable_mp(this, &ScriptTextEditor::_edit_option));
	_load_theme_settings();
	edit_hb->add_child(goto_menu);
	goto_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/goto_function"), SEARCH_LOCATE_FUNCTION);
	goto_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("script_text_editor/goto_line"), SEARCH_GOTO_LINE);
	goto_menu->get_popup()->add_separator();
	goto_menu->get_popup()->add_child(bookmarks_menu);
	goto_menu->get_popup()->add_submenu_item(TTR("Bookmarks"), "Bookmarks");
	_update_bookmark_list();
	bookmarks_menu->connect("about_to_popup", callable_mp(this, &ScriptTextEditor::_update_bookmark_list));
	bookmarks_menu->connect("index_pressed", callable_mp(this, &ScriptTextEditor::_bookmark_item_pressed));
	goto_menu->get_popup()->add_child(breakpoints_menu);
	goto_menu->get_popup()->add_submenu_item(TTR("Breakpoints"), "Breakpoints");
	_update_breakpoint_list();
	breakpoints_menu->connect("about_to_popup", callable_mp(this, &ScriptTextEditor::_update_breakpoint_list));
	breakpoints_menu->connect("index_pressed", callable_mp(this, &ScriptTextEditor::_breakpoint_item_pressed));
	goto_menu->get_popup()->connect("id_pressed", callable_mp(this, &ScriptTextEditor::_edit_option));
}
ScriptTextEditor::ScriptTextEditor() {