aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/rfc822/MCOMessageParser.mm
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-11-13 00:54:48 -0800
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-11-13 00:54:48 -0800
commitad387cce77cf788fbad2da27c987f78dac4db477 (patch)
treeb48972ce664ef60838cfd118b293923dc829a11d /src/objc/rfc822/MCOMessageParser.mm
parent257a7818f58ee67953e91e381dc3e28a41f14845 (diff)
Fixed #260: added ability to render a message without stripping spaces
Diffstat (limited to 'src/objc/rfc822/MCOMessageParser.mm')
-rw-r--r--src/objc/rfc822/MCOMessageParser.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/objc/rfc822/MCOMessageParser.mm b/src/objc/rfc822/MCOMessageParser.mm
index 8e3f1261..78b84c78 100644
--- a/src/objc/rfc822/MCOMessageParser.mm
+++ b/src/objc/rfc822/MCOMessageParser.mm
@@ -81,7 +81,12 @@
- (NSString *) plainTextBodyRendering
{
- return MCO_OBJC_BRIDGE_GET(plainTextBodyRendering);
+ return [self plainTextBodyRenderingAndStripWhitespace:YES];
+}
+
+- (NSString *) plainTextBodyRenderingAndStripWhitespace:(BOOL)stripWhitespace
+{
+ return MCO_TO_OBJC(MCO_NATIVE_INSTANCE->plainTextBodyRendering(stripWhitespace));
}
@end