A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
Describe the bug
If the text in a text box is preceded by a space, the text box will vanish when committed and not be rasterized to the canvas. No error is thrown.
Steps to reproduce the behavior
Switch to the text tool.
Create a text box.
Type some text that is preceded by a space.
Click away to rasterize the text.
The text box disappears and no rasterized text appears.
Expected behavior
The text should have been rasterized to the canvas.
When the text box's inner HTML is grabbed, the preceding space is a non-breaking space entity, , but that entity is not defined in XML, so the SVG has an error in it and will not render.
Describe the bug If the text in a text box is preceded by a space, the text box will vanish when committed and not be rasterized to the canvas. No error is thrown.
Steps to reproduce the behavior
Expected behavior The text should have been rasterized to the canvas.