-
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:
- 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."
- 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.