浏览代码

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

Add missing "/" to "center" tag in `__print_line_rich()`
Thaddeus Crews 5 月之前
父节点
当前提交
86b1fc7205
共有 1 个文件被更改,包括 1 次插入1 次删除
  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";