//
//  XTHtmlTagT2Italics.m
//  XTads
//
//  Created by Rune Berg on 01/10/16.
//  Copyright © 2016 Rune Berg. All rights reserved.
//

#import "XTHtmlTagT2Italics.h"
#import "XTBaseTextHandler.h"
#import "XTFormattingSpecificationForHtmlTag.h"


@implementation XTHtmlTagT2Italics

+ (NSString *)name
{
	return @"tads2italics";
}

+ (BOOL)standalone
{
	return NO;
}

- (void)format:(NSObject<XTOutputFormatterProtocol> *)formatter
   textHandler:(XTBaseTextHandler *)textHandler
{
	// This is not a container tag, so modify current font spec
	formatter.formattingSpecForHtmlTag.formattingSpec.t2Italics = (! self.closing);
}

@end
