Fix display header message email quoted when forward email

This commit is contained in:
dab246
2022-04-14 15:14:46 +07:00
committed by Dat H. Pham
parent e3a4371eae
commit 451f37d4e4
6 changed files with 113 additions and 22 deletions
@@ -17,12 +17,14 @@ extension HtmlExtension on String {
String addBlockTag(String tag, {String? attribute}) => attribute != null ? '<$tag $attribute>$this</$tag>' : '<$tag>$this</$tag>';
String append(String value) => this + value;
String addNewLineTag({int count = 1}) {
if (count == 1) return '$this<br>';
if (count == 1) return '$this</br>';
var htmlString = this;
for (var i = 0; i < count; i++) {
htmlString = '$htmlString<br>';
htmlString = '$htmlString</br>';
}
return htmlString;
}