I need to output multiple lines of text in SVG. For that I\'m using the following scheme:
First line
If you add text-anchor="middle" to each tspan you will center them (you have to remove the space between the tspans as well, otherwise the extra space will be considered as part of the first line and they won't be completely centered).
text-anchor="middle"
tspan
For example:
0000123400001234
See: JSFiddle