From 43c7e2aee7ab519591762249b37b5f5eb1102647 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sun, 11 Nov 2012 13:44:36 +0100 Subject: [PATCH] fixed #37 --- Mac/Controller.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Mac/Controller.m b/Mac/Controller.m index ba5c553..f78e78e 100644 --- a/Mac/Controller.m +++ b/Mac/Controller.m @@ -240,6 +240,7 @@ - (IBAction)sendTweet:(id)sender { TweetModel *tweet = (TweetModel *)[sender object]; NSString *text = [[tweet.text stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"] stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""]; + text = [text stringByReplacingOccurrencesOfString:@"\n" withString:@"\\n"]; NSString *func = [NSString stringWithFormat:@"tentia_instance.sendNewMessage(\"%@\", \"%@\", \"%@\")", text, tweet.inReplyTostatusId,