fix advancedWordWrap concatenate when wrapping

This commit is contained in:
Dmitry Omelchenko 2022-11-12 17:30:27 +02:00
parent c5e10cd3f1
commit 4f30e0b5b9

View file

@ -465,7 +465,7 @@ var Text = new Class({
.replace(/[ \n]*$/gi, ''); .replace(/[ \n]*$/gi, '');
// Prepend remainder to next line // Prepend remainder to next line
lines[i + 1] = remainder + ' ' + (lines[i + 1] || ''); lines.splice(i + 1, 0, remainder);
linesCount = lines.length; linesCount = lines.length;
break; // Processing on this line break; // Processing on this line