Skip to content

Commit c8d1b38

Browse files
committed
Merge pull request #79 from it0a/master
Fix for issue #73
2 parents 9f904da + da37b4d commit c8d1b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagrams/sequenceDiagram/svgDraw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports.drawText = function(elem , textData){
2626
textElem.style('text-anchor', textData.anchor);
2727
textElem.attr('fill', textData.fill);
2828

29-
textData.text.split('<br>').forEach(function(rowText){
29+
textData.text.split(/<br\/?>/ig).forEach(function(rowText){
3030
var span = textElem.append('tspan');
3131
span.attr('x', textData.x +textData.textMargin);
3232
span.attr('dy', textData.dy);

0 commit comments

Comments
 (0)