whitespace-only spans must be merged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Richard Hughes |
Bug Description
1. Create a flowtext, type something to get 2 lines.
Open fill&stroke, select any fragment of text less than
the entire flowtext and paint it red - it works. But
then select the entire flowtext from start to end and
try to paint it - it does not work, color is reset
back. (Although you can still paint it as an object if
selected by selector.)
2. Now select each line separately (Home, Shift+End)
and paint it red. Now when cursor is at the end of the
first line, the displayed color is black - i.e. the
newline is "black". So when you select part of the
first line and part of the second line, you get an
average color because the "black" newline dirts it. As
I wrote you, any whitespace must be disregarded when
figuring out the selection style. Similarly, when
cursor is at the end of flowtext, the displayed paint
is undefined instead of red.
I'm not sure I agree with you about excluding whitespace from
inclusion. Let's be clear here that the whitespace in your
example is a normal space character, not a line break
character. Line breaks are currently excluded from style.
My argument is that if you move the cursor after the space
and type you will get black text, which is what I would expect
as a user (consider the case where you had deleted a whole
load of black characters until only the space was left, then
inserted some new characters). Thus that blackness is real
and is part of the user-visible editing interface and should not
be glossed over in any way.
The other points are all fixed now.