summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Juick/Supporting Files/Juick-Info.plist2
-rw-r--r--Juick/Views/MessageCell.m5
-rw-r--r--JuickPush/Info.plist2
3 files changed, 6 insertions, 3 deletions
diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist
index 75e1360..a7b5d3c 100644
--- a/Juick/Supporting Files/Juick-Info.plist
+++ b/Juick/Supporting Files/Juick-Info.plist
@@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>81</string>
+ <string>82</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m
index 99fb296..f9c9746 100644
--- a/Juick/Views/MessageCell.m
+++ b/Juick/Views/MessageCell.m
@@ -73,7 +73,10 @@
}
self.text.attributedText = nil;
if (msg.text) {
- NSMutableAttributedString *txt = [[NSMutableAttributedString alloc] initWithString:[msg.text stringByDecodingHTMLEntities] attributes:@{NSFontAttributeName:[UIFont preferredFontForTextStyle:UIFontTextStyleBody]}];
+ NSMutableAttributedString *txt = [[NSMutableAttributedString alloc]
+ initWithString:
+ [[msg.text stringByDecodingHTMLEntities] stringByReplacingOccurrencesOfString:@"\n" withString:@"\r\n"]
+ attributes:@{NSFontAttributeName:[UIFont preferredFontForTextStyle:UIFontTextStyleBody]}];
[txt beginEditing];
for (NSDictionary *entity in msg.entities) {
NSUInteger start = [[entity objectForKey:@"start"] unsignedIntegerValue];
diff --git a/JuickPush/Info.plist b/JuickPush/Info.plist
index 7e04d54..edceecb 100644
--- a/JuickPush/Info.plist
+++ b/JuickPush/Info.plist
@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
- <string>81</string>
+ <string>82</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>