Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved output for text selection and copy/paste
Replace text elements with a text element per line which consists of tspan elements and remove all whitespace between tspan:s. Replace figure space codepoint with normal whitespace and use xml:space="preserve" instead. Otherwise copied text would include a confusing non-U+0020 whitespace. This also fixes an issue with Inkscape not rendering underline for a text element with only whitespace. With this combined copy/paste should work much better and even preserve new lines. Note that tabs are not preserved at the moment, they get converted into spaces using 8 space tabulation. Possibly also fixes issue in Safari with text baseline styling. Inkescape issue has been reported here https://gitlab.com/inkscape/inbox/-/issues/9621 Fixes #5
- Loading branch information