FIX: fix whitespaces when copying code blocks (PR #12730)

GitHub

fix fix