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

RichText & StyledText does not respect leading space

    XMLWordPrintable

Details

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

    Description

      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.

      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:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes