TF-105 [BUG] Fix long line should be wrapped
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
import 'package:core/presentation/utils/html_transformer/html_transform.dart';
|
||||
import 'package:model/email/email_content_type.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class HtmlAnalyzer {
|
||||
|
||||
Future<String> transformToHtml(EmailContent emailContent) async {
|
||||
switch(emailContent.type) {
|
||||
case EmailContentType.textHtml:
|
||||
final htmlTransform = HtmlTransform(emailContent.content);
|
||||
return htmlTransform.transformToHtml();
|
||||
default:
|
||||
return emailContent.content;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user