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

CSS style line-height not handled properly when inserting HTML to QTextEdit

XMLWordPrintable

      To reproduce, run attached application. It shows 2 lines on top of each other even though there should be a spacing of 1.5. According to this, plain number means multiplier for font height, but Qt treats them always as percentage: http://www.w3schools.com/cssref/pr_dim_line-height.asp

      Browsers handle this properly and as a result, copy-pasting text from google docs into QTextEdit causes this problem to be seen. Example document that can be used:

      https://docs.google.com/document/d/1fcRCOrvkxpVC3I6xXp1hYBpHhf9pL3mNqPXjUd4Kvfw/edit

        1. qtbug58874.zip
          0.9 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mmutz Marc Mutz
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes