[MC-154] Multiple consecutive newlines in books do not create a space between lines in editor Created: 24/Oct/12  Updated: 24/Jul/23  Resolved: 30/Oct/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.1
Fix Version/s: Minecraft 1.4.3

Type: Bug
Reporter: William Karnavas Assignee: [Mojang] Grum (Erik Broes)
Resolution: Fixed Votes: 1
Labels: book, editor
Environment:

Java 7 (x64) under Windows 7 (x64)


Attachments: PNG File BookNewlineTestScreencap1.png     PNG File BookNewlineTestScreencap2.png     PNG File BookNewlineTestScreencap3.png    
Issue Links:
Relates
relates to MC-2547 Book and Quill Space issue Resolved
Confirmation Status: Unconfirmed

 Description   

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.



 Comments   
Comment by _EnderPi_ [ 24/Jul/23 ]

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

Comment by [Mojang] Grum (Erik Broes) [ 30/Oct/12 ]

Fixed for the future.

Generated at Sun Jan 12 11:50:03 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.