Mojira Archive
MC-116944

\n and \u in written books do not work

\n in written books not creating new line, giving the error below.

Data tag parsing failed: Invalid escape of 'n' at: {pages:["[\"\",{\"text\":\"one\n<--[HERE] This is an example below, works in versions 17w15a and lower. {code}

/give @p written_book 1 0 {pages:["[\"\",

{\"text\":\"one\ntwo\nthree\"}

]"],title:Test,author:Test}


This issue was reported in MC-116553 but not enough information was given.

Works As Intended

Benjamin Nitschke

2017-05-03, 04:05 PM

2017-05-30, 03:56 AM

2017-05-08, 02:03 PM

1

3

Unconfirmed

written_book

Minecraft 17w17a, Minecraft 17w17b

-