GoodBoyDigital/pixi.js — pull request #695 by mowday (2014-04-08 09:29:40+00:00)
Title: Removed the trailing whitespace when wordwrapping a textfield

When wordwrapping occurs in the Text class a trailing whitespace is added to wrapped lines. This causes central aligned texts not to be centred. as the whitespace is included when calculating the width of the textfield.

Please see this fiddle: http://jsfiddle.net/Mowday/24vmw/

This will add a whitespace before a word if it's not the first word of that line, instead of always adding a whitespace after each word.