mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 10:25:27 +00:00
Fix initialization of arrays in NSString+Mail.m
This commit is contained in:
@@ -83,14 +83,16 @@
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
images = nil;
|
||||
|
||||
ignoreContentTags = nil;
|
||||
specialTreatmentTags = nil;
|
||||
ignoreContentTags = [NSArray arrayWithObjects: @"head", @"script",
|
||||
@"style", nil];
|
||||
specialTreatmentTags = [NSArray arrayWithObjects: @"body", @"p", @"ul",
|
||||
@"li", @"table", @"tr", @"td", @"th",
|
||||
@"br", @"hr", @"dt", @"dd", nil];
|
||||
[ignoreContentTags retain];
|
||||
[specialTreatmentTags retain];
|
||||
|
||||
ignoreContent = NO;
|
||||
images = nil;
|
||||
result = nil;
|
||||
|
||||
orderedList = NO;
|
||||
@@ -108,12 +110,6 @@
|
||||
if (!htmlToTextContentHandler)
|
||||
htmlToTextContentHandler = [self new];
|
||||
|
||||
[htmlToTextContentHandler setIgnoreContentTags: [NSArray arrayWithObjects: @"head", @"script",
|
||||
@"style", nil]];
|
||||
[htmlToTextContentHandler setSpecialTreatmentTags: [NSArray arrayWithObjects: @"body", @"p", @"ul",
|
||||
@"li", @"table", @"tr", @"td", @"th",
|
||||
@"br", @"hr", @"dt", @"dd", nil]];
|
||||
|
||||
return htmlToTextContentHandler;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user