#4819
Yutaka Emura
Keymaster

Vlad wrote:
This is a new bug only in version 7.
My actual script, which was ok with version 6, looks like this:

#language="Python"
if 0:
pass
else:
Window.alert('ok')


It has windows line endings and ends with 3 newlines

Now this gives error message:
invalid syntax
Line 8

Line 8 is the end of file. Remove the last line and it runs fine. Other variations of the number of trailing line endings and indents give errors similar to the first post. This is quite mysterious.

I reproduced this bug, and it will be fixed on beta 20. There was a bug where dealing with the end of file in macros. Thanks!