From d9d61093633d6ab0eea76827753465956e707ad2 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 19 Sep 2006 21:06:47 +0000 Subject: [PATCH] Monotone-Parent: e94cb35209635067c1495606f5829d63804b064b Monotone-Revision: bd9c21b9fbf51f3995be616ac94dc59befa68c6b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-19T21:06:47 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ UI/MailPartViewers/UIxMailPartTextViewer.m | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 701785fa2..c370d8fb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-09-19 Wolfgang Sourdeau + * UI/MailPartViewers/UIxMailPartTextViewer.m + ([UIxMailPartTextViewer -flatContentAsString]): override method by + replacing carriage returns with "
" in the result string from + super's implementation. + * UI/Contacts/UIxContactView.m ([UIxContactView -_urlOfType:aType]): don't manage non-mailto urls through javascript, let the user decide what's best for him. diff --git a/UI/MailPartViewers/UIxMailPartTextViewer.m b/UI/MailPartViewers/UIxMailPartTextViewer.m index 40370e491..0c51f9d8f 100644 --- a/UI/MailPartViewers/UIxMailPartTextViewer.m +++ b/UI/MailPartViewers/UIxMailPartTextViewer.m @@ -40,4 +40,16 @@ @implementation UIxMailPartTextViewer +- (NSString *)flatContentAsString +{ + NSString *content; + + content = [[super flatContentAsString] stringByEscapingHTMLString]; + content = [content stringByReplacingString: @"\r\n" + withString: @"
"]; + + return [content stringByReplacingString: @"\n" + withString: @"
"]; +} + @end /* UIxMailPartTextViewer */