cocos2d/cocos2d-iphone — pull request #243 by Zakay (2012-10-09 12:08:15+00:00)
Title: Bug with newlines in multiline labels

When a multiline label updates it counts multiple newlines as one and the string gets trimmed at the end.

This fixes that, keeping track of how many newlines where just skipped and appending as many characters that was skipped.

This is an extract from my code that produced the error with tha last character being trimmed.
It should say "Error\n\nSome error" but it shows "Error\n\nSome erro"

```
CCLabelBMFont *message = [CCLabelBMFont labelWithString:@"Error\n\nSome error message" fntFile:@"#########.fnt"];
message.color = ccc3(0, 0, 0);
message.anchorPoint = ccp(0.5f, 1);
[message setWidth:290];
[message setAlignment:kCCTextAlignmentCenter];
message.position = ccp(dialog.contentSize.width / 2.0f, dialog.contentSize.height - 20);
[dialog addChild:message];
```