Browse Source

Merge pull request #104774 from Cykyrios/fix-center-bbcode-ansi-tag

Add missing "/" to "center" tag in `__print_line_rich()`
Thaddeus Crews 5 months ago
parent
commit
86b1fc7205
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/string/print_string.cpp

+ 1 - 1
core/string/print_string.cpp

@@ -148,7 +148,7 @@ void __print_line_rich(const String &p_string) {
 			output += "";
 		} else if (tag == "center") {
 			output += "\n\t\t\t";
-		} else if (tag == "center") {
+		} else if (tag == "/center") {
 			output += "";
 		} else if (tag == "right") {
 			output += "\n\t\t\t\t\t\t";