Skip to content

Spurious spaces in code blocks when translated with Google Translate #5727

Closed
@astrofrog

Description

@astrofrog

In #4424, Sphinx introduced the class='notranslate' on code blocks, which is great and works to some extent. However, there is a residual issue that Google Translate appears to introduce spaces between parts of the code:

screen shot 2018-12-05 at 17 56 15

which means that copy/pasted code can't actually be used without cleaning it up first. It would be great if this is something that could be prevented on the Sphinx side.

(cc-ing @tk0miya as the author of #4424)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions