Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

replace newlines in email by <br/>

  • Loading branch information...
commit 27efe06b8de6ff7096a08f089ca9b67fbadbe0f3 1 parent 7c6619a
@naja1987 authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Classes/ShareKit/Sharers/Actions/Email/SHKMail.m
View
6 Classes/ShareKit/Sharers/Actions/Email/SHKMail.m
@@ -174,7 +174,11 @@ - (BOOL)sendMail
[mailController addAttachmentData:UIImageJPEGRepresentation(item.image, 1) mimeType:@"image/jpeg" fileName:@"Image.jpg"];
[mailController setSubject:item.title];
- [mailController setMessageBody:body isHTML:YES];
+
+ // replace \n by <br/>
+ NSString *bodyBR = [body stringByReplacingOccurrencesOfString:@"\n" withString:@"<br/>"];
+
+ [mailController setMessageBody:bodyBR isHTML:YES];
[[SHK currentHelper] showViewController:mailController];
Please sign in to comment.
Something went wrong with that request. Please try again.