Multiline macros seem to bug
When creating macros with multiple lines, everything works fine. But when the world is loaded the next time CocoMUD starts, there is an error:
Traceback (most recent call last): File "cocomud.py", line 53, in <module> window.panel.CreateClient() File "C:\Users\Vincent\src\cocomud\src\ui\window.py", line 385, in CreateClient world.load() File "C:\Users\Vincent\src\cocomud\src\world.py", line 99, in load self.sharp_engine.execute(content, variables=False) File "C:\Users\Vincent\src\cocomud\src\sharp\engine.py", line 84, in execute exec(instruction, globals, locals) File "<string>", line 1 macro(u'F8', u' ^ SyntaxError: EOL while scanning string literal
#1 Updated by Vincent Le Goff over 2 years ago
- Status changed from Open to Closed
- Assignee set to Vincent Le Goff
- % Done changed from 0 to 100
Fixed in commit f089320618d0364852666d167b959739d289359f.
In fact, every SharpScript instruction on multiple lines had this problem, but it was hard to find out, since the SharpEngine.feed() method behaved as expected.
Please register to edit this issue