EmEditor (text editor) Forum Index Beta Version Bug Reports
[b17] Python macro error | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| Vlad | Posted on: 10/17/2007 6:52 pm |
Just popping in ![]() ![]() Joined: 10/21/2006 From: Posts: 19 |
[b17] Python macro error This macro:
results in error after successful alert display: The macro file has Windows line endings and ends with a single newline (\r\n). There is no error if the macro ends with two newlines. If the macro has three newlines at the end, the error is: Convert the last macro to Unix line endings. It ends with 3 newlines (\n). Error: |
| Yutaka | Posted on: 10/18/2007 9:19 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2404 |
Re: [b17] Python macro error Quote:
Is this a new bug only in version 7, or existed from version 6?
|
| Vlad | Posted on: 10/18/2007 10:50 am |
Just popping in ![]() ![]() Joined: 10/21/2006 From: Posts: 19 |
Re: [b17] Python macro error This is a new bug only in version 7.
My actual script, which was ok with version 6, looks like this: 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. |
| Yutaka | Posted on: 10/19/2007 8:49 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2404 |
Re: [b17] Python macro error Quote:
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!
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




