TF-2092 Update signature prefix
(cherry picked from commit 426d56c58c53b50d7e9ac4a5cf39961ba86af11a)
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
extension HtmlExtension on String {
|
extension HtmlExtension on String {
|
||||||
|
|
||||||
static const String editorStartTags = '<p><br></p>';
|
static const String editorStartTags = '<br><div><br></div>';
|
||||||
|
static const String signaturePrefix = '-- ';
|
||||||
|
|
||||||
String addBlockTag(String tag, {String? attribute}) =>
|
String addBlockTag(String tag, {String? attribute}) =>
|
||||||
attribute != null
|
attribute != null
|
||||||
@@ -24,7 +25,9 @@ extension HtmlExtension on String {
|
|||||||
'blockquote',
|
'blockquote',
|
||||||
attribute: 'style="margin-left:8px;margin-right:8px;padding-left:12px;padding-right:12px;border-left:5px solid #eee;"');
|
attribute: 'style="margin-left:8px;margin-right:8px;padding-left:12px;padding-right:12px;border-left:5px solid #eee;"');
|
||||||
|
|
||||||
String asSignatureHtml() => '--<br>$this<br>';
|
String signaturePrefixTagHtml() => '<span class="tmail_signature_prefix">$signaturePrefix</span>';
|
||||||
|
|
||||||
|
String asSignatureHtml() => '${signaturePrefixTagHtml()}<br>$this<br>';
|
||||||
|
|
||||||
String removeEditorStartTag() {
|
String removeEditorStartTag() {
|
||||||
if (trim() == editorStartTags) {
|
if (trim() == editorStartTags) {
|
||||||
|
|||||||
Reference in New Issue
Block a user