mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
String: Add contains().
This commit is contained in:
parent
bf12719cca
commit
adbe948bda
57 changed files with 142 additions and 119 deletions
|
|
@ -1940,7 +1940,7 @@ static String marked_documentation(const String &p_bbcode) {
|
|||
line = "\t" + line.substr(code_block_indent, line.length());
|
||||
}
|
||||
|
||||
if (in_code_block && line.find("[/codeblock]") != -1) {
|
||||
if (in_code_block && line.contains("[/codeblock]")) {
|
||||
line = "\n";
|
||||
in_code_block = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue