You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Merge pull request #105247 from bruvzg/fix_nested_bbcode
Fix BBCode print with nested `[`.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user