From 7b65c29b1eb532de628188498cb51f86b6722cd4 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 21 Nov 2012 08:54:32 -0500 Subject: [PATCH] Fixed \n /
when composing mails and improved preferences UI. --- UI/MailerUI/UIxMailAccountActions.m | 10 ++++++---- UI/PreferencesUI/English.lproj/Localizable.strings | 1 + UI/Templates/PreferencesUI/UIxPreferences.wox | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/UI/MailerUI/UIxMailAccountActions.m b/UI/MailerUI/UIxMailAccountActions.m index 2f9911ee8..5f1ab0c2a 100644 --- a/UI/MailerUI/UIxMailAccountActions.m +++ b/UI/MailerUI/UIxMailAccountActions.m @@ -209,11 +209,11 @@ - (WOResponse *) composeAction { - SOGoDraftsFolder *drafts; + NSString *urlBase, *url, *value, *signature, *nl; SOGoDraftObject *newDraftMessage; - NSString *urlBase, *url, *value, *signature; - id mailTo; NSMutableDictionary *headers; + SOGoDraftsFolder *drafts; + id mailTo; BOOL save; drafts = [[self clientObject] draftsFolderInContext: context]; @@ -246,8 +246,10 @@ signature = [[self clientObject] signature]; if ([signature length]) { + nl = ([[[[context activeUser] userDefaults] mailComposeMessageType] isEqualToString: @"html"] ? @"
" : @"\n"); + [newDraftMessage - setText: [NSString stringWithFormat: @"\n\n-- \n%@", signature]]; + setText: [NSString stringWithFormat: @"%@%@-- %@%@", nl, nl, nl, signature]]; save = YES; } if (save) diff --git a/UI/PreferencesUI/English.lproj/Localizable.strings b/UI/PreferencesUI/English.lproj/Localizable.strings index 04cbd629c..037bb4bb1 100644 --- a/UI/PreferencesUI/English.lproj/Localizable.strings +++ b/UI/PreferencesUI/English.lproj/Localizable.strings @@ -141,6 +141,7 @@ "messageforward_inline" = "Inline"; "messageforward_attached" = "As Attachment"; +"When replying to a message:" = "When replying to a message:"; "replyplacement_above" = "Start my reply above the quote"; "replyplacement_below" = "Start my reply below the quote"; "And place my signature" = "And place my signature"; diff --git a/UI/Templates/PreferencesUI/UIxPreferences.wox b/UI/Templates/PreferencesUI/UIxPreferences.wox index ccae9b6d1..52c34b9c1 100644 --- a/UI/Templates/PreferencesUI/UIxPreferences.wox +++ b/UI/Templates/PreferencesUI/UIxPreferences.wox @@ -223,7 +223,7 @@ const:name="messageForwarding" string="itemMessageForwardingText" selection="userMessageForwarding"/> -
+