Minor bug report: printing a quotation mark causes "invalid syntax" error

It appears that the Blockcode-to-Python interpreter isn’t escaping the quotation mark with a backslash, as it should. It does escape a backslash, though.

For example attempting to use the code block “print … on Brain” to print a quotation mark creates the following Python code:
brain.screen.print(“”")

Which probably should be this instead:
brain.screen.print(“\”")

Hmm, the backslash-escaped version got muddled by the forum posting logic, so it doesn’t show up in my original post. Hopefully you know what I meant.

I fixed that for you.

4 Likes