Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-block-code doesn't add proper spaces but unicode variants #58605

Closed
Digiover opened this issue Feb 2, 2024 · 1 comment
Closed

wp-block-code doesn't add proper spaces but unicode variants #58605

Digiover opened this issue Feb 2, 2024 · 1 comment
Labels
[Block] Code Affects the Code Block [Type] Bug An existing feature does not function as intended

Comments

@Digiover
Copy link

Digiover commented Feb 2, 2024

Description

When adding an space in a wp-block-code block, it doesn't add a space but something unicode that looks like an space. This is annoying when copy-pasting code back and forth. It's always something with Gutenberg (see 56855)

Step-by-step reproduction instructions

  1. Start a new post
  2. add a wp-block-code block
  3. write or paste in your code
  4. add spaces
  5. copy-paste the code into an editor/IDE like Visual Studio Code. It'll complain:

The character U+2003 is not a basic ASCII character.

Screenshots, screen recording, code snippet

Screenshot 2024-02-02 102858
Screenshot 2024-02-02 102850

Environment info

  • WordPress version: WordPress 6.4.3
  • Gutenberg version (plugin): 17.6.0
  • running Hester theme version 1.1.4.

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@Digiover Digiover added the [Type] Bug An existing feature does not function as intended label Feb 2, 2024
@jordesign jordesign added the [Block] Code Affects the Code Block label Feb 4, 2024
@t-hamano
Copy link
Contributor

t-hamano commented Feb 5, 2024

Thanks for the report. I would like to close this issue as it has been summarized in #58659.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Code Affects the Code Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants