Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107004

Copying from QTextEdit to other program turns newline into paragraph separator (U+2029)

    XMLWordPrintable

Details

    • Linux/X11
    • a51e7876b8 (qt/qtbase/dev) 1cb57091ac (qt/qtbase/6.4) 1cb57091ac (qt/tqtc-qtbase/6.4) a51e7876b8 (qt/tqtc-qtbase/dev)

    Description

      When you copy lines from a QTextEdit/QPlainTextEdit (e.g. via the context menu) and paste the clipboard in some other application, e.g. to the console or vim, the newlines got replaces by a unicode character.

      I found that QTextEditMimeData now uses the QTextDocumentFragment::toRawText() to set the "plain" text where in older versions (6.3) QTextDocumentFragment::toPlainText() was used providing the desired results in other (non-qt?) programs.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-107004
          # Subject Branch Project Status CR V

          Activity

            People

              kkohne Kai Köhne
              mlangen Marc Langenbach
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes