From da37b4dee5e6956a7966b7f56178600d811f5e63 Mon Sep 17 00:00:00 2001 From: it0a Date: Wed, 31 Dec 2014 02:02:39 -0500 Subject: [PATCH] Fix for issue #73 --- src/diagrams/sequenceDiagram/svgDraw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagrams/sequenceDiagram/svgDraw.js b/src/diagrams/sequenceDiagram/svgDraw.js index b8bc954036..0253919c68 100644 --- a/src/diagrams/sequenceDiagram/svgDraw.js +++ b/src/diagrams/sequenceDiagram/svgDraw.js @@ -26,7 +26,7 @@ exports.drawText = function(elem , textData){ textElem.style('text-anchor', textData.anchor); textElem.attr('fill', textData.fill); - textData.text.split('
').forEach(function(rowText){ + textData.text.split(//ig).forEach(function(rowText){ var span = textElem.append('tspan'); span.attr('x', textData.x +textData.textMargin); span.attr('dy', textData.dy);