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

Copy & paste into book and quill displays CR on each line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 19w13b
    • Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2
    • Confirmed
    • (Unassigned)

      The bug

      When I copy & paste a text from anywhere (notepad, webpage, word, etc...) from windows into a book and quill, a carriage return control character is added at the end of each line.

      I suppose it's because the new line char on Windows is "\r\n" (CR-LF), the CR char is displayed but it should not.

      It's possible to avoid this problem using an advanced Text Editor that allow to choose the new-line char, using the linux mode (\n) there are no problem. Using the Mac mode (\r only), there are not new line, all text is collapsed with the CR char as separator. (See screenshots)

        1. 2018-08-02_07.23.52.png
          942 kB
          Tronics
        2. 2018-08-02_07.23.54.png
          897 kB
          Tronics
        3. 2018-08-02_07.24.07.png
          856 kB
          Tronics
        4. book-bug-multiline-copypaste.png
          18 kB
          Tronics

            Unassigned Unassigned
            Tronics Tronics
            Votes:
            29 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: