Merge pull request #556 from photonstorm/dev
Fixes a rogue new-line character on the end of Text objects
This commit is contained in:
commit
7f06fb3554
1 changed files with 5 additions and 1 deletions
|
@ -287,7 +287,11 @@ PIXI.Text.prototype.wordWrap = function(text)
|
|||
result += words[j] + ' ';
|
||||
}
|
||||
}
|
||||
result += '\n';
|
||||
|
||||
if (i < lines.length-1)
|
||||
{
|
||||
result += '\n';
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue