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

toHtmlEscaped() messes up newline formatting if QString includes HTML

    XMLWordPrintable

Details

    Description

      I've called toHtmlEscaped on a QString and set resulting QString as a tooltip.

      When QString contains some HTML elements, \n seems to be stripped and replaced by whitespace, while when there are no HTML elements \n is preserved.

      This messes up formatting.

      Inconsistency should be fixed, and \n should be preserved regardless of whether there are HTML elements in the QString.

      Attached project is an example of messed up formatting in tooltip when QString contains HTML.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            zetok Zetok
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes