Fix for issue #73

This commit is contained in:
it0a 2014-12-31 02:02:39 -05:00
parent 9f904da7b3
commit da37b4dee5
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ exports.drawText = function(elem , textData){
textElem.style('text-anchor', textData.anchor);
textElem.attr('fill', textData.fill);
textData.text.split('<br>').forEach(function(rowText){
textData.text.split(/<br\/?>/ig).forEach(function(rowText){
var span = textElem.append('tspan');
span.attr('x', textData.x +textData.textMargin);
span.attr('dy', textData.dy);