https://bugs.kde.org/show_bug.cgi?id=420471
Bug ID: 420471 Summary: SVG Text tool loses whitespace when the run of similarly-formatted text is only whitespace Product: krita Version: 4.2.9 Platform: MS Windows OS: MS Windows Status: REPORTED Severity: normal Priority: NOR Component: Tool/Text Assignee: krita-bugs-n...@kde.org Reporter: m...@chrismorgan.info Target Milestone: --- SUMMARY SVG Text tool loses whitespace when the run of similarly-formatted text is only whitespace STEPS TO REPRODUCE 1. Open the SVG Text tool and end up in the Edit Text window. 2. Enter two words, separated by a space. 3. Make the first word bold. 4. Make the second word bold. 5. Switch to the SVG Source tab. 6. Switch back to the Rich text tab. Alternatively for steps 2–5, go to the SVG Source tab and paste one of these sets of markup: <text><tspan x="0"><tspan style="font-weight:600">one</tspan> <tspan style="font-weight:600">two</tspan></text> <text>one<tspan style="fill:red"> </tspan>two</text> OBSERVED RESULT The space is lost. EXPECTED RESULT The space should be preserved. SOFTWARE/OS VERSIONS Windows 10.0.19041, 64-bit ADDITIONAL INFORMATION I tried to work around this by using a non-breaking space, adding xml:space="preserve", wrapping the text node in <tspan>, with or without formatting. None of these worked; all that works is putting the space in with another run of formatted text. -- You are receiving this mail because: You are watching all bug changes.