There are some formatting issues happening with code snippets on this online platform at the moment. Some GDScript code wraps on a single line. This is beyond our control as this is caused by the online text editor upon saving documents. I reported the bug to the platform's developers.
In the meantime, I warmly recommend downloading the offline and DRM-free version of the course. You can do so under any lesson by clicking on "1 Course File" and then on the .zip file that appears. The zip archive contains all lessons and Godot project files.