Skip to content

Commit

Permalink
Fix for issue #73
Browse files Browse the repository at this point in the history
  • Loading branch information
it0a committed Dec 31, 2014
1 parent 9f904da commit da37b4d
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 da37b4d

Please sign in to comment.