Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.12.3, 5.13, 5.14, 5.15
-
None
-
Linux, Debian 9.11 with Qt 5.11.3 gcc64 (also seen on windows/msys)
-
-
60aeeb0e9 (dev), f0713117d (6.7), d91d5d3ab (6.6)
Description
The formatting of text in a QML Text object that has `textFormat: Text.RichText` is wrong for lines that follow a unordered list <ul> with a <br> that is indented itself. See the following example:
import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Text { textFormat: Text.RichText text: "<ul><li>one</li><li>two</li></ul> <br> Hello world indented <br> Hello world also indented <ul><li>one</li><li>two</li></ul> <br> Hello world not indented" } }
Observed is that the first two "hello world ..." lines are indented on the same level as the closed <ul>.
I would not expect any of the "hello world ..." lines to be indented since the HTML standard prescribes that whitespace in the source is displayed as a single whitespace.
Attachments
Issue Links
- is duplicated by
-
QTBUG-46623 QTextEdit wrong rendering of <ul> followed by <br>
- Closed
For Gerrit Dashboard: QTBUG-81662 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
544047,5 | Add tst_QTextDocumentLayout::lineSeparatorInBlock | dev | qt/qtbase | Status: NEW | 0 | 0 |
288905,8 | QTextHtmlImporter: don't forget to appendBlock after block tag closed | dev | qt/qtbase | Status: MERGED | +2 | 0 |
544636,2 | QTextHtmlImporter: don't forget to appendBlock after block tag closed | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
544738,2 | QTextHtmlImporter: don't forget to appendBlock after block tag closed | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |