kangax/fabric.js — pull request #120 by Kingsquare (2012-02-03 16:53:37+00:00)
Title: SVG text new lines

toSVG() produces empty tspan-tags when multiple new lines are used in a text block. Some SVG parsers (e.g. IE7 and IE8) ignore an empty tspan, and thus these new lines are stripped. This make text like

line 1
line 2

line 3

look like

line 1
line 2
line 3

This patch fixes this issue