SVG, multi-line text: Text-alignment incorrect
--- Text-alignment: left, result: OK
--- Text-alignment: centered, result: NOT OK
--- Text-alignment: right, result: NOT OK
Problematic source code of the SVG file:
<tspan x="54.15" y="-42.1188">aaa</tspan>
<tspan x="54.15" y="-26.1188">bbb</tspan>
The line break after the first </tspan>
is interpreted as a whitespace-character and is inserted in front of the text in the next line.
To fix the problem, the SVG output should not have line breaks between </tspan>
and <tspan>
.