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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.4.1
    • Fix Version/s: Minecraft 1.4.3
    • Labels:
    • Environment:
      Java 7 (x64) under Windows 7 (x64)
    • 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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: