Ticket #913 (closed: fixed)
Pasting code from external editor into Python scripting causes syntax errors
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Iteration 20 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
On windows each line ending has an additional '\r' over the unix one. Python struggles with code that contains a mixture of line ending characters. When opening a file, '\r' characters are removed from the stream but these are being imported with a paste command.
To reproduce:
- Copy some code from an external editor on Windows;
- Go to the end of a line and press return;
- Execute the code. A syntax error should occur
The workaround for now is to save and reload the file.
Change History
Note: See
TracTickets for help on using
tickets.