cocos2d/cocos2d-x — pull request #2624 by benjamesward (2013-05-23 17:33:35+00:00)
Title: Fixed linebreaks on Mac OSX

Previously the CCLabelTTF linebreaks worked on a character by character basis, so you'd have a newline inserted in the middle of a word. Now it breaks as you'd expect (on spaces and special characters).

Before: This is a long sen\ntence.
After: This is a long \nsentence.