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

HTML breaks when only setting letter-spacing format

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.6.3
    • GUI: Font handling
    • None
    • Android, iOS/tvOS/watchOS

    Description

      Observed an issue with the html style tag for the subsequent half of the line-spacing is inadvertently removed after applying the (QTextCharFormat / QTextBlockFormat) formatting.

      This leads to a disruption in the HTML structure.
      when saving and reviewing the result in a TextEdit, an empty tag replaces the original word.

      example of the Document where the user wrote the word 'Test' then a letter-spacing is applied:

       

      <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\nhr { height: 1px; border-width: 0; }\nli.unchecked::marker { content: \"\\2610\"; }\nli.checked::marker { content: \"\\2612\"; }\n</style></head><body style=\" font-family:'Roboto'; font-size:18px; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" letter-spaciTest</p></body></html>

      issue in the line: 

      <span style=\" letter-spaciTest</p></body</html>

      Please check the sample project is included below.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            sunilfyi Sunil Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes