summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Juick/Supporting Files/Juick-Info.plist2
-rw-r--r--Juick/Views/MessageCell.m7
-rw-r--r--JuickPush/Info.plist2
3 files changed, 8 insertions, 3 deletions
diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist
index a7b5d3c..57923d1 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>82</string>
+ <string>83</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m
index f9c9746..b9e40c8 100644
--- a/Juick/Views/MessageCell.m
+++ b/Juick/Views/MessageCell.m
@@ -75,7 +75,7 @@
if (msg.text) {
NSMutableAttributedString *txt = [[NSMutableAttributedString alloc]
initWithString:
- [[msg.text stringByDecodingHTMLEntities] stringByReplacingOccurrencesOfString:@"\n" withString:@"\r\n"]
+ [msg.text stringByDecodingHTMLEntities]
attributes:@{NSFontAttributeName:[UIFont preferredFontForTextStyle:UIFontTextStyleBody]}];
[txt beginEditing];
for (NSDictionary *entity in msg.entities) {
@@ -88,6 +88,11 @@
}
if ([[entity objectForKey:@"type"] isEqualToString:@"q"]) {
[txt addAttribute:NSForegroundColorAttributeName value:[UIColor darkGrayColor] range:currentRange];
+ NSMutableParagraphStyle *paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
+ paragraphStyle.firstLineHeadIndent = 12.0f;
+ paragraphStyle.headIndent = 12.0f;
+ paragraphStyle.paragraphSpacing = 12.0f;
+ [txt addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:currentRange];
}
if ([[entity objectForKey:@"type"] isEqualToString:@"u"]) {
[txt addAttribute:NSUnderlineStyleAttributeName value:@(NSUnderlineStyleSingle) range:currentRange];
diff --git a/JuickPush/Info.plist b/JuickPush/Info.plist
index edceecb..b964d29 100644
--- a/JuickPush/Info.plist
+++ b/JuickPush/Info.plist
@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
- <string>82</string>
+ <string>83</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>