Text on Path has indent added on reopen
Migrated from: https://bugs.launchpad.net/inkscape/+bug/799736
Steps to reproduce:
From su_v's comments:
- draw straight line
- create text:
- click once with the text tool on canvas
- enter text
- highlight the text (-> style gets applied to the inner )
- click on 'Align Center' on the text tool controls bar
- select the text and the path, 'Text > Put on Path'
- save and reopen
What happened?
The text is misaligned (pushed to the right an arbitrary amount). Difference is not visible in firefox.
Why is that? In the xml editor, we see that a empty text node "" has been added before the tspan. Deleting that solves the problem (till inkscape is reopened!).
Note: su_v found that if you don't highlight the text (in step 2) before aligning center, this problem doesn't occur. From the xml su_v posted, this is because text-anchor:middle;text-align:center
was placed in the text node (not the inner tspan).
Before save | After reopen |
---|---|
Inkscape Version and Operating System:
- Inkscape 1.0alpha (e0eb5d33c2, 2019-05-20) Linux Mint 19.1
- Inkscape 0.92.4 (9252c0c584, 2019-05-19) Linux Mint 19.1
- Inkscape 0.92pre1 15054 (GTK3) Arch Linux 64-bit
- Inkscape 0.48.1 Mac OS X 10.5.8 and Gentoo
- Inkscape 0.48+devel r10325 Mac OS X 10.5.8