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);