1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-28 16:07:14 +00:00

Fix BBCode print with nested [.

This commit is contained in:
Pāvels Nadtočajevs
2025-04-10 19:53:12 +03:00
parent c374ce211c
commit bd3a264011

View File

@@ -257,7 +257,8 @@ void __print_line_rich(const String &p_string) {
} else if (tag == "/fgcolor") { } else if (tag == "/fgcolor") {
output += "\u001b[39;49m"; output += "\u001b[39;49m";
} else { } else {
output += vformat("[%s]", tag); output += "[";
pos = brk_pos + 1;
} }
} }
output += "\u001b[0m"; // Reset. output += "\u001b[0m"; // Reset.