mirror of
https://github.com/godotengine/godot
synced 2024-11-02 14:43:31 +00:00
Fix line
being assigned to twice in the GDScript language server
This closes #32090.
This commit is contained in:
parent
159470df08
commit
c1fcb22677
1 changed files with 2 additions and 4 deletions
|
@ -345,15 +345,13 @@ String ExtendGDScriptParser::marked_documentation(const String &p_bbcode) {
|
|||
if (block_start != -1) {
|
||||
code_block_indent = block_start;
|
||||
in_code_block = true;
|
||||
line = "'''gdscript";
|
||||
line = "\n";
|
||||
line = "'''gdscript\n";
|
||||
} else if (in_code_block) {
|
||||
line = "\t" + line.substr(code_block_indent, line.length());
|
||||
}
|
||||
|
||||
if (in_code_block && line.find("[/codeblock]") != -1) {
|
||||
line = "'''\n";
|
||||
line = "\n";
|
||||
line = "'''\n\n";
|
||||
in_code_block = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue