mojira.dev
MC-297244

SNBT removing spaces from string in command

When I try to give me in Minecraft a book with a custom text with multiple spaces in a row they will be cut down to a single space.

Steps to reproduce:
1. Enter following command to get the book: /give @p written_book[written_book_content={pages:[["",{text:" Multiple Spaces to the left"}]], title:"My Spaces :(", author: "Player"}]
2. Open the Book

Expected Result:
The Book has the content “ Multiple Spaces to the left”.

Observed Result:
The Book has the content “ Multiple Spaces to the left”.

When you try to get the command back to the chat line with the arrow keys the spaces in the command are also removed.
The restored command is /give @p written_book[written_book_content={pages:[["",{text:" Multiple Spaces to the left"}]], title:"My Spaces :(", author: "Player"}] instead of /give @p written_book[written_book_content={pages:[["",{text:" Multiple Spaces to the left"}]], title:"My Spaces :(", author: "Player"}].

Linked issues

Comments 2

flow_santohyj123

Duplicate of MC-65034.

Thank you for your report!
We are tracking this issue in MC-65034, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote or provide any additional information to the main ticket, it would be appreciated.

If you haven’t already, please make use of the search feature to see whether an issue has already been reported.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

PrimCargo693208

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5

Retrieved