1.0alpha regression: whitespace added in flowPara/flowSpan elements
Steps to reproduce:
- Open attached file in Inkscape.
Notice whitespace before "Hello" and after "World", as well as extra space between the two words. - Change the text to remove unwanted whitespace, that is, to eliminate all whitespace except for a single space character between the words.
- Save the file to disk, and close the application.
- Open the same file in a new application session. The deleted whitespace is restored.
(Restarting the application appears to be unnecessary, as the problem is in the way the file is serialzed.
What happened?
Inkscape persisted the XML elements following line break and indentation formatting rules, causing extra characters to be inserted inside the text element. The effect is mitigated but not eliminated by reducing the XML indentation setting in the user preferences. Even a value of 0 leaves the line break characters in the saved file.
What should have happened?
Any formatting rules that add whitespace between XML elements must be suspended inside text elements. Whitespace appearing inside these elements must be limited to the presentation text specified by the user.
Inkscape Version and Operating System:
- Inkscape Version: 1.0alpha (9dee831, 2019-01-15) (Prebuilt AppImage)
- Operating System: Linux Mint
- Operating System version: 19.1
Example file:
Edited by brainchild