You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix line being assigned to twice in the GDScript language server
This closes #32090.
This commit is contained in:
@@ -345,15 +345,13 @@ String ExtendGDScriptParser::marked_documentation(const String &p_bbcode) {
|
|||||||
if (block_start != -1) {
|
if (block_start != -1) {
|
||||||
code_block_indent = block_start;
|
code_block_indent = block_start;
|
||||||
in_code_block = true;
|
in_code_block = true;
|
||||||
line = "'''gdscript";
|
line = "'''gdscript\n";
|
||||||
line = "\n";
|
|
||||||
} else if (in_code_block) {
|
} else if (in_code_block) {
|
||||||
line = "\t" + line.substr(code_block_indent, line.length());
|
line = "\t" + line.substr(code_block_indent, line.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_code_block && line.find("[/codeblock]") != -1) {
|
if (in_code_block && line.find("[/codeblock]") != -1) {
|
||||||
line = "'''\n";
|
line = "'''\n\n";
|
||||||
line = "\n";
|
|
||||||
in_code_block = false;
|
in_code_block = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user