diff --git a/src/gameobjects/text/Text.js b/src/gameobjects/text/Text.js index e48f4c013..7ae6055b1 100644 --- a/src/gameobjects/text/Text.js +++ b/src/gameobjects/text/Text.js @@ -465,7 +465,7 @@ var Text = new Class({ .replace(/[ \n]*$/gi, ''); // Prepend remainder to next line - lines[i + 1] = remainder + ' ' + (lines[i + 1] || ''); + lines.splice(i + 1, 0, remainder); linesCount = lines.length; break; // Processing on this line