Book & Quills can be created through commands or command blocks (through the /give commands or as the inventory of a chest in a /setblock command), however, not all book & quills that can be made in the game can be made through a command. A similar fix was previously done for signed, written books, and I'm looking for that fix to be applied to writable books / book & quills as well.
Specifically, previous bug
MC-52919 (same title), fixed the written_book item so that it accepts tellraw formatted text, allowing newline characters ('\n') in the text of commands to be interpreted a line breaks in the text of the written book (a place where the user pressed enter). (1.12 has change how the text parser for command interprets \n inside quoted text, so now
n is needed, but otherwise the commands in the comments of
Unfortunately, this fix only was applied to the written_book item. The writable_book item, while supporting the same text features in game (as it is turning into the written_book item once signed), does not support the tellraw format in a command, and therefore it isn't possible to use a command to create a writable book that happens to have line breaks / new line characters in it's text, even though it is possible to make such an object in game with the standard book & quill interface.
This command works in game:
It produces a written book with the following text on the first page:
This command does not work as expected:
This is expected to produce a book similar to the above, except not signed yet. Instead it produces a not signed book with the following text on page 1:
As writable books and written books are similar objects in game (in fact writable books are turned into written books), I would expect that they would treat text similarly and both support newline characters in their text (as when creating the objects in game allows enter to be pressed to go to the start of the next line).