Implement SVG2 white-space behavior
This document has a space at the end of the first tspan
:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="300" height="100">
<g font-family="sans" font-size="16" fill="black">
<text x="50%" y="30" text-anchor="start"><tspan>Foo </tspan><tspan>bar</tspan></text>
<text x="50%" y="60" text-anchor="middle"><tspan>Foo </tspan><tspan>bar</tspan></text>
<text x="50%" y="90" text-anchor="end"><tspan>Foo </tspan><tspan>bar</tspan></text>
</g>
</svg>
Firefox and WebKit render this SVG with a space between Foo
and bar
. However, librsvg eats the whitespace:
I am not yet sure if this is because librsvg does not implement the white-space
rules from SVG2, but something is wrong here.
(Inkscape also eats the whitespace.)