Skip to content

Commit 5703c75

Browse files
committed
fix: fix indent error in practice in lesson 24
1 parent 055a8ca commit 5703c75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/UIPractice.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func _run_student_code() -> void:
292292
if "while " in script_text:
293293
var modified_code := PoolStringArray()
294294
for line in script_text.split("\n"):
295-
if "while " in line:
295+
if "while " in line and not line.strip_edges(true, false).begins_with("#"):
296296
var indent := 0
297297
while line[indent] == "\t":
298298
indent += 1

0 commit comments

Comments
 (0)