Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-181673

Removing formatting symbol in book doesn't remove color character

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 20w18a, 1.16 Pre-release 2
    • None
    • Confirmed
    • UI

      When editing books containing the formatting character '§' followed by a formatting code, only one of them is removed.

      Use the following command to reproduce the issue:

      /setblock ~ ~ ~ oak_sign{Text1:"{\"text\":\"Click me\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/give @p writable_book{pages:[\\\"\\u00a7nVery cool text\\n\\u00a7r \\u00a7\\u00a7\\u00a7\\u00a7 hi\\n\\u00a75more\\n\\u00a7etext\\\"]}\"}}"}
      

      (This can also be reproduced without extra commands by having a book with the formatting character in a 1.13 world by copy-pasting text into it, and upgrading/opening that world with a 1.14+ client.)

      What can be observed:

      • removing the '§' character doesn't remove the character setting the color afterward (and seemingly makes it pop into existence)
      • removing the color character doesn't remove the formatting character (and seemingly makes it pop into existence)

            Unassigned Unassigned
            KennyTV Nassim Jahnke
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: