Thanks! I can now reproduce this.
The cause of the unusual output is that this is not an "error" as such -- a bad input that we catch and report to the user -- but a crash (an unhandled exception in the translator). Someone decided that for crashes we print things with "repr", which is less user-friendly but more informative and reliable for developers than printing with "str". (It does not hide any aspects of the output, including whitespace, and it cannot trigger a separate crash due to unicode encoding issues.) I don't remember why we decided to do this, but there are good reasons for it. These messages are never meant to be seen by a user, so we care less about how pretty it looks.
So the real problem is that the translator crashes in the first place and this error is not caught. I'm changing the title of the issue.
Do you want to look into this?
|