소스 검색

Merge pull request #105247 from bruvzg/fix_nested_bbcode

Fix BBCode print with nested `[`.
Thaddeus Crews 4 달 전
부모
커밋
e2b6a45e8d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      core/string/print_string.cpp

+ 2 - 1
core/string/print_string.cpp

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