Line breaks are represented as a literal newline character in NBT, making it impossible to represent strings containing line breaks in commands since SNBT doesn't support \n.
It would make much more sense to represent strings in the same way as other text-containing items like written books, which escape characters like newlines and \ in their nbt.
how string iotas represent a string containing a line break:
Line breaks are represented as a literal newline character in NBT, making it impossible to represent strings containing line breaks in commands since SNBT doesn't support
\n
.It would make much more sense to represent strings in the same way as other text-containing items like written books, which escape characters like newlines and
\
in their nbt.how string iotas represent a string containing a line break:
how written books represent a string containing a line break: