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

Rich text in Text element not rendered correctly when placed next to a newline

    XMLWordPrintable

Details

    Description

      See following code samples. The issue seems to appear when the text markup is placed right next to a "\n".

      // Works ok, newline does appear
      Text {
         text: "Link A\n"
             + "Link B"
      }
      
      // The <b></b> markup actually appears in the output (see text-markup-in-text.png)
      Text {
         text: "Link A\n"
             + "<b>Link B</b>"
      }
      
      
      // The newline after "Link A" does not appear (see text-no-newline.png)
      Text {
         text: "<b>Link A</b>\n"
             + "Link B"
      }
      
      

      Attachments

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

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            bealam Bea Lam (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes