소스 검색

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";