Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-154

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.4.3
    • Minecraft 1.4.1
    • Java 7 (x64) under Windows 7 (x64)
    • Unconfirmed

      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.

        1. BookNewlineTestScreencap1.png
          106 kB
          William Karnavas
        2. BookNewlineTestScreencap2.png
          151 kB
          William Karnavas
        3. BookNewlineTestScreencap3.png
          112 kB
          William Karnavas

            grum [Mojang] Grum (Erik Broes)
            fencefoil William Karnavas
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: