This should be `NSString *end = @"@end\n";`. It was inserting an extra newline before `@end`.