We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f904da + da37b4d commit c8d1b38Copy full SHA for c8d1b38
src/diagrams/sequenceDiagram/svgDraw.js
@@ -26,7 +26,7 @@ exports.drawText = function(elem , textData){
26
textElem.style('text-anchor', textData.anchor);
27
textElem.attr('fill', textData.fill);
28
29
- textData.text.split('<br>').forEach(function(rowText){
+ textData.text.split(/<br\/?>/ig).forEach(function(rowText){
30
var span = textElem.append('tspan');
31
span.attr('x', textData.x +textData.textMargin);
32
span.attr('dy', textData.dy);
0 commit comments