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

Styled text vs Rich text white space before img tag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2
    • GUI: Text handling
    • None

    Description

      See the 3rd line in the screen shot. Styled text ignores the space before "img" tag.

      Test code:

          Column {
              Text {
                  textFormat: Text.StyledText
                  text: "Default <img src=\"images/face-smile.png\"> align <img src=\"images/face-smile-big.png\">"
              }
      
              Text {
                  textFormat: Text.StyledText
                  // images from bindings
                  property string img1: "<img src=\"images/face-smile.png\">"
                  property string img2: "<img src=\"images/face-smile-big.png\">"
                  text: "Default " + img1 + " align " + img2 + "(using bindings)"
              }
      
              Text {
                  textFormat: Text.StyledText
                  text: "Default<img src=\"images/face-smile.png\">align<img src=\"images/face-smile-big.png\">"
              }
          }
      


      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              paeglis Gatis Paeglis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes