Cannot create new lines in text which is inside a rectangle or using inline-size property
Steps to reproduce:
When a text is created in a rectangle, for instance by selecting the text tool and click-and-drag a box for the text (instead of just clicking and typing), new lines cannot be created in the text.
When typing a new line and clicking "apply", the new line disappears (in the xml code a <svg:tspan sodipodi:role="line"> is created for each line but without any effect on the display which remains as only one line).
Additional behavior :
In the XML view, the fact that the text is in a rectangle appears by the svg:text style property "shape-inside:url(#rect12345);".
If this shape-inside property is manually removed, then the textbox gets out of the rectangle and :
- if the text is edited, all <svg:tspan sodipodi:role="line"> which were created while in the rectangle get merged into one.
- it is however possible again to add new lines : they create a <svg:tspan sodipodi:role="line"> in the xml code and this time, on the contrary of when being in the rectangle, these new lines are now visible in the display.
If the shape-inside property is then manually re-added, the text gets back into the rectangle and the new lines which were created while being out of the rectangle are still properly displayed. However, as soon as the text is edited, the new lines disappear from the display (the lines appear as merged in one line although in the xml code they are still in separate <svg:tspan sodipodi:role="line">).
The same problem also occurs if the text has got the inline-size property defined, which can be obtained by creating a basic textbox (by clicking and typing), and then dragging the text box.
What happened?
New lines were not properly created (not displayed).
What should have happened?
New lines should be possible to create even when the text is in a rectangle or when it is using the inline-size property.
Inkscape Version and Operating System:
- Inkscape Version: 1.0.2-2 (e86c8708, 2021-01-15)
- Operating System: Windows 10