TF-3424 Fix TMail web should display text/plain with a fixed width font

This commit is contained in:
dab246
2025-01-16 19:10:41 +07:00
committed by Dat H. Pham
parent 597b8f1a29
commit 4ce729ff59
3 changed files with 16 additions and 1 deletions
@@ -0,0 +1,12 @@
import 'dart:convert';
import 'package:core/presentation/utils/html_transformer/base/text_transformer.dart';
class PersistPreformattedTextTransformer extends TextTransformer {
const PersistPreformattedTextTransformer();
@override
String process(String text, HtmlEscape htmlEscape) {
return '<pre>$text</pre>';
}
}