Missing white space between <tspan>s

Bug #804255 reported by Tavmjong Bah
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

If you have two <tspan>'s on separate lines that are indented (and without 'x' or 'dx' attributes, which Inkscape generated text uses), there should be a white space between the displayed text of the <tspan>'s. See:

 http://www.w3.org/TR/SVG/text.html#WhiteSpace

For example:
   <text>
    <tspan>My first span.</tspan>
    <tspan>My second span.</tspan>
   </text>
Should be rendered as:
  My first span. My second span.
But is being rendered as:
  My first span.My second span.

The newline's are stripped out but the indention should be collapsed to one remaining space.

Tags: svg text
Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

White space at the beginning (end) of a <tspan> should be collapsed, but the resulting single space should not be removed unless it is the first (last) <tspan> inside a <text>.

su_v (suv-lp)
tags: added: text
su_v (suv-lp)
tags: added: svg
Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :

Can still reproduce this issue on current Inkscape master (4855a8a2).

Changed in inkscape:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.