Created attachment 164646 [details] 1: The desired result. SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Using text editor (Rich text mode) to create art for speech balloons and captions. 2. Add extra spaces in text editor. These are added so that the first letter of the caption can be omitted (this will be created on a separate layer and will incorporates drop shadow. 3. OBSERVED RESULT While the spaces are clearly indicated in the rich text editor and the in the svg source code, they are not produced in the artwork. EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: 10 macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Created attachment 164647 [details] 1. Desired result 2. Rich text 3. svg code 4. resulting text for artwork
Hi, This is because the default white-space rule is 'normal', which removes duplicate spaces. This default will be changed in Krita 5.3, where incidentally, we'll also have a more ergonomic text tool overall. You can go into the SVG source editor to add 'white-space:pre-wrap' to the root 'style' attribute if you need spaces right now. *** This bug has been marked as a duplicate of bug 474674 ***