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

Reset formatting code in advancement description removes text colour after line break

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 2, 1.20.5 Pre-Release 3, 1.20.5 Pre-Release 4, 1.20.5 Release Candidate 2, 1.20.5 Release Candidate 3, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, 24w18a, 24w19a, 24w19b, 24w20a, 24w21b, 1.21 Pre-Release 1, 1.21 Pre-Release 2, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4
    • None
    • Confirmed
    • Advancements, Data Packs, UI

      Using the reset formatting code §r in an advancement description that spans multiple lines resets the text colour to a default value (grey in the advancement screen; white in chat) after the next line break following the formatting code.

      Steps to reproduce:

      1. Download the attached data pack “reset_format_test.zip” and add it to a new or existing world. This data pack adds a single advancement that is granted immediately and has the following string as its description text: "Lorem ipsum dolor sit amet, consectetur adipiscing §oelit§r, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
      2. Hover over the advancement in the advancement screen and in the chat announcement. Note the formatting.

      Expected results:

      The word “elit” is italicised and the entire advancement description is formatted like normal with a green text colour.

      Observed results:

      The word “elit” is italicised, but the advancement description loses its green text colour starting at the next line break, turning grey in the advancement screen and white in chat.


      May relate to MC-228516, MC-248972, and MC-250160.

        1. 2024-03-27_12.16.22.png
          1.08 MB
          Charlotte Eiffel Lilith Buff
        2. 2024-03-27_12.16.45.png
          1.93 MB
          Charlotte Eiffel Lilith Buff

            Unassigned Unassigned
            charlottebuff Charlotte Eiffel Lilith Buff
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: