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

RichText & StyledText does not respect leading space

XMLWordPrintable

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

      Test code:

          Text {
              font.pointSize: 14
              wrapMode: Text.WordWrap
              textFormat: Text.PlainText // <--- if this is changed to RichText, the space in the "     asgasg " is removed in the rendered text.
      
              text: "     asgasg "
          }
      

      And this :

      "a       asgasg " 
      

      is rendered as this:

       "a  asgasg ".
      

      The spaces seem to be compressed.

      If text is wrapped with HTML tags, then it seems it is allowed to compress the leading whitespace, but should show at least one space. But note that none of the test code actually uses html tags.

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

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

              Created:
              Updated:

                There are no open Gerrit changes