Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Shawn Rutledge 183ee5c177 QTextMarkdownWriter: Avoid omitting or misplacing ending indicators
If we need to word-wrap a paragraph after a long formatted span,
write any ending markers before the newline (amends
280d679c55 ).

Break before a fragment if the whole thing is past the column limit;
in that case, write out any ending format markers before the newline.

And now we have test coverage: prepend characters one-at-a-time to a
line that already has a two-word formatted span at the end, and watch
it successively break after the span, in the middle, and then before,
while never putting a newline before the ending markers or failing to
write them.

Fixes: QTBUG-116927
Change-Id: I140e10d19a491cb599bf7ecf8514af866b5383f3
Pick-to: 6.6 6.5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 908fc2e72b)
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2024-02-14 12:02:27 -07:00
.github/workflows Repair github action workflow 2021-11-10 18:57:33 +01:00
LICENSES Update QLocale and calendar data to CLDR v44.1 2024-02-05 21:02:10 +01:00
bin CMake: Don't strip debug builds with qt-cmake-private-install in CI 2023-11-03 18:24:46 +02:00
cmake Change the mechanism that copies framework header files 2024-02-14 15:00:04 +01:00
coin COIN: Enable setting Debian target distro with env variable 2024-01-31 11:36:58 +00:00
config.tests Remove the mandatory x86-64 features from its feature list 2023-05-31 14:55:37 -07:00
dist Add Qt 6.0.0 changes file 2020-11-16 10:02:08 +02:00
doc Change doc snippet license 2024-02-07 10:10:08 +00:00
examples Use the unique resource identifier in editabletreemodel example 2024-02-14 07:43:00 +00:00
lib
libexec CMake: Add a config.redo script similar to qt5's config.status 2023-09-20 21:20:13 +02:00
mkspecs wasm: Don't suppress exceptions during main() 2023-12-20 00:44:47 +00:00
qmake Correct license in qmake/ 2024-02-14 07:43:00 +00:00
src QTextMarkdownWriter: Avoid omitting or misplacing ending indicators 2024-02-14 12:02:27 -07:00
tests QTextMarkdownWriter: Avoid omitting or misplacing ending indicators 2024-02-14 12:02:27 -07:00
util Update QLocale and calendar data to CLDR v44.1 2024-02-05 21:02:10 +01:00
.cmake.conf CMake: Warn when configuring Qt with an unsupported Apple SDK or Xcode 2023-11-29 16:00:57 +01:00
.gitattributes Give batch files CRLF line endings 2020-11-04 15:02:29 +00:00
.gitignore Git ignore Visual Studio CMake build directories 2023-11-24 23:42:05 +01:00
.lgtm.yml
.tag
CMakeLists.txt cmake: build repo helpers - fine-grained test/example options 2024-02-09 07:17:11 +00:00
config_help.txt Update config_help.txt with -trace ctf 2023-12-09 12:05:24 +02:00
configure Change configure license 2024-02-02 15:28:34 +00:00
configure.bat Change license of configure.bat file 2024-02-07 15:10:28 +00:00
configure.cmake CMake: Fix Threads global promotion issue when using static openssl 2024-01-22 14:57:34 +00:00
dependencies.yaml
qt_cmdline.cmake Add coverage and coverage-gcov features 2023-09-22 15:54:30 +02:00