Created attachment 187426 [details] Test file with white-space only test content elements. SUMMARY This was caused by https://invent.kde.org/graphics/krita/-/commit/153fa48b513b53d773cfbfc3bcb3c125703f8c2c Qt5.15: https://qt-project.atlassian.net/browse/QTBUG-92369#icft=QTBUG-92369 Qt 6 has https://doc.qt.io/qt-6/qdomdocument.html#ParseOption-enum STEPS TO REPRODUCE 1. Open test file in krita and firefox. 2. Notice that the second text has overlapping text in krita 3. This is caused by carriage return getting stripped, because it is alone in its text content element. OBSERVED RESULT White space only text content elements do not get loaded, leading to removed white spaces. EXPECTED RESULT White spaces will get loaded.
This really needs to be fixed before 5.3, as it'll result in data loss in certain situations.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2562
Git commit 996609c4a805c52e8fcddf64c7faf34c439aca28 by Wolthera van Hövell, on behalf of Wolthera van Hövell tot Westerflier. Committed on 17/12/2025 at 15:34. Pushed by woltherav into branch 'master'. Reimplement XMLSimpleReader under an ifdef in SVGParser to read white-space only nodes. M +42 -1 libs/flake/svg/SvgParser.cpp https://invent.kde.org/graphics/krita/-/commit/996609c4a805c52e8fcddf64c7faf34c439aca28