Skip to content

Commit

Permalink
Merge pull request #79 from it0a/master
Browse files Browse the repository at this point in the history
Fix for issue #73
  • Loading branch information
knsv committed Dec 31, 2014
2 parents 9f904da + da37b4d commit c8d1b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagrams/sequenceDiagram/svgDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c8d1b38

Please sign in to comment.