cocos2d/cocos2d-iphone — pull request #953 by sarah-j-smith (2014-08-28 07:55:06+00:00)
Title: Handle odd line seperators in CCLabelBMFont.

The XCode plist editor and some other editors can create string data
with Unicode line seperators in it, eg: \u2028.

http://en.wikipedia.org/wiki/Newline#Unicode

You can easily enter one using + in your plist or code
editor. The plist editor will not let you type as it will just
commit the current cell being edited. To get an actual newline you can
type
+.

Code in CCLabelBMFont correctly tests using NSCharacterSet
newlineCharacterSet in most places, but in two places incorrectly
tests for equality against '\n'.

So strings with one of these "odd" newlines will be rendered with all
the text on one line. Fix this, and make the code consistent.