mojira.dev
MC-154

Multiple consecutive newlines in books do not create a space between lines in editor

When writing a book, pressing enter only appears move the cursor down one line, no matter how many times you press enter.

Having played with books in mods, I have found multiple "\ n" characters can be created by pressing enter, and they are saved, the only problem being the book GUI not showing the blank lines.

EXPECTED:
Pressing enter twice creates a blank line in a book between previous text and any text added.

BROKEN BEHAVIOR:
Pressing enter twice does not create a blank line between previous text and any text added, but only breaks the current line without adding the blank line.

TO REPRODUCE:
1. Open a book and quill
2. Write a line of text
3. Press the enter key four times.
4. Write more text

Result with bug is that there is no blank between lines.

ATTACHMENTS:

A MOD IS USED TO ILLUSTRATE THE BUG BY IMPORTING A FILE WITH MULTIPLE CONSECUTIVE NEWLINES INTO A BOOK.

1: A page is written in Notepad++, showing newline characters.
2: The page is imported into a book to show that multiple consecutive newlines are ignored.
3: The page is exported from Minecraft, showing that the multiple newlines are preserved, but not shown in Minecraft.

Linked issues

Attachments

Comments 2

Fixed for the future.

This actually seems like a bug that mojang would just leave without fixing (i know its fixed now)

William Karnavas

Erik Broes

Unconfirmed

book, editor

Minecraft 1.4.1

Minecraft 1.4.3

Retrieved