### Godot version

4.2.dev1

### System information

Manjaro Linux (DE: Cinnamon v5.8.4) 64 bits

### Issue description

The title already explains it. Take a look at the steps to reproduce below.

### Steps to reproduce

In a GDScript `_ready()` function write this:
```print_rich("[color=red]Red line\n2nd red line[/color]")```

the second line is not red and the output is as follow:
![Capture d’écran du 2023-07-29 05-50-16](https://github.com/godotengine/godot/assets/102065761/554038c6-d128-40c9-8c88-237b44b35b12)

I tested all the the possible BBCodes for the print_rich() method (as stated in the documentation), and of course they all failed.

The RichTextLabel in my projects works as expected.

### Minimal reproduction project

N/A
_clear_request();
}
void EditorLog::_process_message(const String &p_msg, MessageType p_type) {
	if (messages.size() > 0 && messages[messages.size() - 1].text == p_msg && messages[messages.size() - 1].type == p_type) {
		
		
		LogMessage &previous = messages.write[messages.size() - 1];
		previous.count++;
		_add_log_line(previous, collapse);
	} else {
		
		LogMessage message(p_msg, p_type);
		_add_log_line(message);
		messages.push_back(message);
	}
	type_filter_map[p_type]->set_message_count(type_filter_map[p_type]->get_message_count() + 1);
}
void EditorLog::add_message(const String &p_msg, MessageType p_type) {
	
	
	
	
	
	Vector<String> lines = p_msg.split("\n", true);
	for (int i = 0; i < lines.size(); i++) {
		_process_message(lines[i], p_type);
	}
}
void EditorLog::set_tool_button(Button *p_tool_button) {