Some texts have default formatting settings, instead of being plain white.
Resolved
Invalid
21
The Bug
Some areas where JSON text components are used have different default settings than just plain white text.
These areas include:
display.Name for items. (`italic` defaults to `true`)
display.Lore[] (`italic` defaults to `true`, `color` defaults to `dark_purple`)
give @s stick{display:{Lore:["{\"text\":\"Thisshouldnotbeitalicsandshouldnotbedarkpurple\"}"],Name:"{\"text\":\"This should not be italic text...\"}"}}
tellraw @s {"text":"This is not italic text, nor dark purple text, while it’s formatted the same as the name and the lore of the item"}
@Poslovitch This issue is separate from MC-123790.
The problem in MC-123790 was that item names were given italic formatting in certain places, even when "italic":"false" was in the JSON.
This issue is about item names being given "italic":"true" by default when no "italic" key is specified, which is inconsistent with JSON handling in other places, like the /title command. (Where when "italic" is not present, it is not set to true by default.)
My guess is this is caused by how renaming in anvils gives an italic name; and maybe a custom name in NBT is not properly differentiated from a custom name by an anvil.
Affects 18w20a.