qt6-bb10/tests/auto/gui/text/qtextmarkdownimporter
Shawn Rutledge f1e60de665 QTextMarkdownImporter: don't apply text char format to list item block
We want an ordered list item's number to be rendered with default char
format, like the others in the same list, even if the list item's text
begins with a span that has a different char format.  So insert the
list item's block with a default char format first, then change the
char format of the cursor to suit the text that's about to be inserted.
In HTML interpretation, it means the <li> does not have a style, but
contains a styled span.

Fixes: QTBUG-92445
Task-number: QTBUG-3583
Task-number: QTBUG-99148
Pick-to: 5.15 6.2 6.3
Change-Id: I7eb58a8d1171c16503cac01c8cce109d9f12e1af
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2022-01-06 22:06:09 +01:00
..
data QTextMarkdownImporter: fix use after free; add fuzz-generated tests 2020-02-28 09:31:59 +01:00
BLACKLIST tst_qtextmarkdown: blacklist tests for QEMU ARMv7 2021-01-08 09:04:55 +02:00
CMakeLists.txt tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
tst_qtextmarkdownimporter.cpp QTextMarkdownImporter: don't apply text char format to list item block 2022-01-06 22:06:09 +01:00