NSAttributedString wrongly inserts a newline at the end of the string when generating HTML from RTF. The rules for HTML parsing specify that this newline, after the closing </html> tag, should be treated the same way as if it had been part of the body. - https://html.spec.whatwg.org/multipage/syntax.html#start-tags - https://html.spec.whatwg.org/multipage/parsing.html#the-after-after-body-insertion-mode This results in an additional space character if the HTML is converted to a QTextDocument by QTextHtmlParser, for example when inserting text from another application via the clipboard or drag-and-drop. Pick-to: 6.5 6.2 5.15 Change-Id: If17cfcdc9ad5452e7b516fc6b50d834bd5184e23 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 3dceef8e23787d3aded207e4f6ca554de4a1c2d4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%